]> git.eshelyaron.com Git - emacs.git/commitdiff
Double DST correction removed!
authorEdward M. Reingold <reingold@emr.cs.iit.edu>
Sat, 27 Apr 1996 00:13:07 +0000 (00:13 +0000)
committerEdward M. Reingold <reingold@emr.cs.iit.edu>
Sat, 27 Apr 1996 00:13:07 +0000 (00:13 +0000)
lisp/calendar/solar.el

index 3a573620ab20294968b5cda3ddaa90bc3a099858..936f78501b193337cc78d5783f56f78104a083b7 100644 (file)
@@ -883,13 +883,11 @@ No diary entry if there is no sunset on that date."
       (solar-setup))
   (if (= (% (calendar-absolute-from-gregorian date) 7) 5);;  Friday
       (let* ((sunset (car (cdr (solar-sunrise-sunset date))))
-            (light (if sunset
-                        (dst-adjust-time
-                         date
-                         (- (car sunset) (/ 18.0 60.0))))))
-        (if (and light (calendar-date-equal date (car light)))
+                  (light (if sunset
+                        (cons (- (car sunset) (/ 18.0 60.0)) (cdr sunset)))))
+        (if sunset
             (format "%s Sabbath candle lighting"
-                    (apply 'solar-time-string (cdr light)))))))
+                    (apply 'solar-time-string light))))))
 
 (defun solar-equinoxes/solstices (k year)
   "Date of equinox/solstice K for YEAR.