From ed589f9aa29fc19ec15c9900aa5c77b6a6c9614d Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 24 Dec 2006 02:58:41 +0000 Subject: [PATCH] (calendar-dst-starts): Default to second Sunday in March. (calendar-dst-ends): Default to first Sunday in November. --- lisp/calendar/cal-dst.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lisp/calendar/cal-dst.el b/lisp/calendar/cal-dst.el index aed4c32e3db..2f7e4ac88fd 100644 --- a/lisp/calendar/cal-dst.el +++ b/lisp/calendar/cal-dst.el @@ -53,7 +53,8 @@ change." :group 'calendar) (defvar calendar-current-time-zone-cache nil - "Cache for result of calendar-current-time-zone.") + "Cache for result of `calendar-current-time-zone'.") +(put 'calendar-current-time-zone-cache 'risky-local-variable t) (defvar calendar-system-time-basis (calendar-absolute-from-gregorian '(1 1 1970)) @@ -346,7 +347,7 @@ This function respects the value of `calendar-dst-check-each-year-flag'." (nth 4 calendar-current-time-zone-cache)))) (if expr (eval expr))) (and (not (zerop calendar-daylight-time-offset)) - (calendar-nth-named-day 1 0 4 year)))) + (calendar-nth-named-day 2 0 3 year)))) (defun calendar-dst-ends (year) "Return the date of YEAR on which Daylight Saving Time ends. @@ -356,7 +357,7 @@ This function respects the value of `calendar-dst-check-each-year-flag'." (nth 5 calendar-current-time-zone-cache)))) (if expr (eval expr))) (and (not (zerop calendar-daylight-time-offset)) - (calendar-nth-named-day -1 0 10 year)))) + (calendar-nth-named-day 1 0 11 year)))) ;;;###autoload -- 2.39.2