C2N14 / AutomaThemely

Simple, set-and-forget python application for changing between desktop themes according to light and dark hours
GNU General Public License v3.0
205 stars 31 forks source link

"Timezone [...] not recognized" error #25

Closed neekt closed 5 years ago

neekt commented 5 years ago

I cannot get manual time zones to work. When I manually specify a time zone, I get the following error notification when I try to update sun times from the Automathemely icon right-click menu:

ERROR: Timezone [...] not recognized

Where [...] is the name of the time zone I have entered. I'm located in Australia, and I have tried "Australian Eastern Standard Time,' 'AEST', 'UTC+10', and 'Australia' as time zone names, and all of them produce the same error. If I leave 'Time zone name' empty, I get an error saying 'Auto location is not enabled and some manual values are missing.'

Is this a bug, or am I doing something wrong? Auto location seems to work just fine (the only problem here is that it uses the time zone of the VPN server IP I connect to, not my local time zone).

Running Linux Mint 19.1 Cinnamon. Here are my user_settings.json settings: https://pastebin.com/PfnPbKAJ

Thanks for maintaining app, I think it's great!

C2N14 commented 5 years ago

Hey, thank you for your interest!

This app uses the python module astral to calculate the sunrise and sunset times, which also depends on pytz for its timezones. This table from Wikipedia should do the trick, or also this might help.

In your case I believe Australia/Melbourne should work ;)

Let me know if you encounter any other issue.