guidoschmidt / circadian.el

Theme-switching for Emacs based on daytime
https://guidoschmidt.github.io/circadian.el
MIT License
169 stars 8 forks source link

Timezone/time on Windows seems to be off by one hour #32

Closed guidoschmidt closed 2 months ago

guidoschmidt commented 3 months ago

Describe the bug Using circardian--encode-time on Windows seems to offset the time by 1 hour.

To Reproduce Steps to reproduce the behavior:

Expected behavior Using (decode-time (circadian--encode-time 11 54)) should not offset time by one hour.

Environment (please complete the following information):

guidoschmidt commented 2 months ago

Looks like passing the time zone via (current-time-zone) results in a wrong time zone on windows. According to (encode-time) documentation, you can just pass ignored -1 nil for the time zone settings.