circadian.el icon indicating copy to clipboard operation
circadian.el copied to clipboard

UTC Time Only?

Open jjuel opened this issue 6 years ago • 1 comments

This is mostly just a question. I was playing around with circadian and I love the idea of it! However, right now it is reading only UTC time. I have the time displayed in my emacs and that is the correct local time. But when setting circadian it was always my dark theme when it should have been the light theme. After playing around I realized it is UTC (which I am in UTC -6). So I would have to set the times to +6 hours from my actual time. It shouldn't be an issue, but wondered if there was a way to set the time circadian uses or where it derives its's time from?

jjuel avatar Mar 06 '19 20:03 jjuel

circadian gets its time from solar.el which is a package included in the emacs release. That package decides what time it is for you from your coordinate settings, your longitude and latitude on earth, so having those set correctly is essential.

utoku avatar Apr 05 '22 04:04 utoku

Just realized that circadian.el is only working if the calendar lat/lng values are set properly like

(setq calendar-latitude 49.329896)
(setq calendar-longitude 8.570925)

I'm currently working to support only string values for times on branch feature/ignore-sunrise-sunset-on-missing-calendar-settings. Shouldn't be too complicated, just filter :sunset and :sunrise entries in circadian-themes if one of the variables calendar-latitude or calendar-longitude is not set: circadian-themes-parse

Happy for anyone having a second look, my elisp is a bit outdated 😅

guidoschmidt avatar Apr 17 '24 13:04 guidoschmidt