bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#43759: Emacs Calc date conversion


From: Vincent Belaïche
Subject: bug#43759: Emacs Calc date conversion
Date: Fri, 2 Oct 2020 20:13:37 +0000

Definitely, I applied the patch manually, and it fixed the issue.

VBR,
  V.

De : Mattias Engdegård <mattiase@acm.org>
Envoyé : vendredi 2 octobre 2020 19:31
À : Lars Ingebrigtsen <larsi@gnus.org>
Cc : Vincent Belaïche <vincent.b.1@hotmail.fr>; 43759@debbugs.gnu.org <43759@debbugs.gnu.org>
Objet : Re: bug#43759: Emacs Calc date conversion
 
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?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]