1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-27 10:54:40 +00:00

(timezone-time-from-absolute): Fix off-by-one

error in current-time-origin.
This commit is contained in:
Paul Eggert 1996-10-28 03:55:59 +00:00
parent 914860c262
commit db853edc0b

View 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))