From 3bb0de4f76265d3be28c0b38046f1a08d93259b9 Mon Sep 17 00:00:00 2001 From: "Basil L. Contovounesios" Date: Sun, 9 May 2021 09:50:00 +0100 Subject: [PATCH] Default to 1970 in decoded-time-set-defaults * lisp/calendar/time-date.el (decoded-time-set-defaults): Set an unspecified year field to 1970, as promised in the docstring, and to ensure it's representable on all systems (bug#48298). --- lisp/calendar/time-date.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/calendar/time-date.el b/lisp/calendar/time-date.el index 2df57a3c33..e93a74810d 100644 --- a/lisp/calendar/time-date.el +++ b/lisp/calendar/time-date.el @@ -539,7 +539,7 @@ decoded-time-set-defaults (unless (decoded-time-month time) (setf (decoded-time-month time) 1)) (unless (decoded-time-year time) - (setf (decoded-time-year time) 0)) + (setf (decoded-time-year time) 1970)) ;; When we don't have a time zone, default to DEFAULT-ZONE without ;; DST if DEFAULT-ZONE if given, and to unknown DST otherwise. -- 2.30.2