]> git.eshelyaron.com Git - emacs.git/commitdiff
(timezone-time-from-absolute): Fix off-by-one
authorPaul Eggert <eggert@twinsun.com>
Mon, 28 Oct 1996 03:55:59 +0000 (03:55 +0000)
committerPaul Eggert <eggert@twinsun.com>
Mon, 28 Oct 1996 03:55:59 +0000 (03:55 +0000)
error in current-time-origin.

lisp/timezone.el

index 8ab2c215bde80adac6712f460176641285894250..b461948896098f87ca4fa069a052e5b30caaa3d6 100644 (file)
@@ -277,7 +277,7 @@ Return a list suitable as an argument to current-time-zone,
 or nil if the date cannot be thus represented.
 DATE is the number of days elapsed since the (imaginary)
 Gregorian date Sunday, December 31, 1 BC."
-  (let* ((current-time-origin 719162)
+  (let* ((current-time-origin 719163)
            ;; (timezone-absolute-from-gregorian 1 1 1970)
         (days (- date current-time-origin))
         (seconds-per-day (float 86400))