Skip to content

Commit

Permalink
fix: correct reversed logic in time calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
LemonBreezes committed Jan 4, 2025
1 parent 0898dd4 commit ae46d11
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions circadian.el
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"Clear previous `custom-enabled-themes' and load THEME."
;; Only load the argument theme, when `custom-enabled-themes'
;; does not contain it.

(condition-case nil
(progn
(run-hook-with-args 'circadian-before-load-theme-hook theme)
Expand Down Expand Up @@ -110,11 +110,11 @@
(nth 3 tomorrow)
(nth 3 now)))
(month (if is-earlier
(nth 4 now)
(nth 4 tomorrow)))
(nth 4 tomorrow)
(nth 4 now)))
(year (if is-earlier
(nth 5 now)
(nth 5 tomorrow))))
(nth 5 tomorrow)
(nth 5 now))))
(encode-time 0 min hour day month year nil -1 nil)))

(defun circadian-themes-parse ()
Expand Down Expand Up @@ -233,11 +233,11 @@ or set calendar-longitude:
(cond ((equal nil calendar-latitude)
(progn
nil))

((equal nil calendar-longitude)
(progn
nil))

(t)))

(defun circadian-sunrise ()
Expand Down

0 comments on commit ae46d11

Please sign in to comment.