emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master 101dad2: Fix timezone east of GMT in Calv


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master 101dad2: Fix timezone east of GMT in Calv
Date: Tue, 9 Jul 2019 18:06:12 -0400 (EDT)

branch: master
commit 101dad2c150e7416c35f9ccf34dfbc6e3a6ccd32
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    Fix timezone east of GMT in Calv
    
    * lisp/calc/calc-forms.el (math-calendar-tzinfo): Make timezone
    calculation work east of Greenwich.  Fix proposed by David O'Shea
    (bug#34075).
---
 lisp/calc/calc-forms.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/calc/calc-forms.el b/lisp/calc/calc-forms.el
index fce82d2..8faeb0a 100644
--- a/lisp/calc/calc-forms.el
+++ b/lisp/calc/calc-forms.el
@@ -1491,7 +1491,7 @@ second, the number of seconds offset for daylight 
savings."
                     (calendar-current-time-zone)
                     calendar-current-time-zone-cache)))
       (setq math-calendar-tzinfo
-            (list (* 60 (abs (nth 0 tzinfo)))
+            (list (* 60 (- (nth 0 tzinfo)))
                   (* 60 (nth 1 tzinfo)))))))
 
 (defun calcFunc-tzone (&optional zone date)



reply via email to

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