[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#43759: Emacs Calc date conversion
From: |
Mattias Engdegård |
Subject: |
bug#43759: Emacs Calc date conversion |
Date: |
Fri, 2 Oct 2020 19:31:09 +0200 |
2 okt. 2020 kl. 16.22 skrev Lars Ingebrigtsen <larsi@gnus.org>:
> This is another off-by-one-day bug, though, so perhaps it's related to
> the same change from a few years ago that changed day zero?
Actually this error is unrelated. It has been there since Calc was added to the
Emacs tree in 2001: the number of days from the Calc epoch to start of Unix
time was incorrectly given as 719164 but the correct number was 719162 before
the change in Calc epoch in 2012, and since then it should be 719163.
The "t U" command was fixed in 2015 (e368697ce36) along with the documentation.
The attached patch fixes the remaining uses of the wrong constant, in the date
parsing and formatting code. Vincent, is this patch helpful?
0001-Calc-fix-formatting-and-parsing-Unix-time-bug-43759.patch
Description: Binary data