Skip to content

Commit

Permalink
FIX #32: proper time zone settings according to Emacs documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
guidoschmidt committed Apr 30, 2024
1 parent d23d678 commit 87bfd24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions circadian.el
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,8 @@
(nth 4 tomorrow)))
(year (if is-earlier
(nth 5 now)
(nth 5 tomorrow)))
(zone (current-time-zone)))
(encode-time 0 min hour day month year zone)))
(nth 5 tomorrow))))
(encode-time 0 min hour day month year nil -1 nil)))

(defun circadian-themes-parse ()
"Parse `circadian-themes', filter the list and sort it by time.
Expand Down Expand Up @@ -162,6 +161,7 @@ set and and sort the final list by time."
(progn
(nth (random (length theme-or-theme-list)) theme-or-theme-list))
theme-or-theme-list)))
(print theme-or-theme-list)
(circadian-enable-theme theme)))

(defun circadian-schedule()
Expand Down

0 comments on commit 87bfd24

Please sign in to comment.