diff options
author | Mattias Engdegård <mattiase@acm.org> | 2020-10-02 18:50:50 +0200 |
---|---|---|
committer | Mattias Engdegård <mattiase@acm.org> | 2020-10-02 22:24:54 +0200 |
commit | 0ade20f49f80d2d93f596ba9dfa3f1309ad84126 (patch) | |
tree | 5b07796eece45179b7abb21d10de5551ac5c6eea /lisp/ChangeLog.6 | |
parent | 6a6466031839d5fb4efadbfe2cdbd5ba469dd9c6 (diff) | |
download | emacs-0ade20f49f80d2d93f596ba9dfa3f1309ad84126.tar.gz emacs-0ade20f49f80d2d93f596ba9dfa3f1309ad84126.tar.bz2 emacs-0ade20f49f80d2d93f596ba9dfa3f1309ad84126.zip |
Calc: fix formatting and parsing Unix time (bug#43759)
The number of days from epoch to Jan 1, 1970 that was used in parsing
and formatting Unix time was incorrect. The previous fix
(in e368697ce36) was incomplete.
Reported by Vincent Belaïche.
* lisp/calc/calc-forms.el (math-unix-epoch): New constant.
(math-format-date-part, math-parse-standard-date, calcFunc-unixtime):
Use math-unix-epoch instead of a constant that is sometimes wrong.
* test/lisp/calc/calc-tests.el (calc-unix-date): New test.
Diffstat (limited to 'lisp/ChangeLog.6')
0 files changed, 0 insertions, 0 deletions