]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix timezone east of GMT in Calv
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 9 Jul 2019 22:04:55 +0000 (00:04 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 9 Jul 2019 22:06:06 +0000 (00:06 +0200)
* 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

index fce82d2eaac77aa84cfa004223d477116a382c9b..8faeb0a9decacc047b2347550407bc8ec0321b2e 100644 (file)
@@ -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)