-
Notifications
You must be signed in to change notification settings - Fork 315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set TimeZone #373
Comments
Yes I was thinking on it too... |
I recommend using the data provided by the tzdata package. It lays out a folder structure in ---Alex |
https://timezonedb.com/ nice API here If you download the tzdata db then there is a zone1970 file in there. ftp://ftp.iana.org/tz/releases/tzdata2016c.tar.gz |
@apinner To me, it doesn't make a lot of sense to use a remote service when the data is all available locally. Furthermore, the local service is the one to be configured. The remote service and local tz database are likely (certainly?) to be updated at different intervals. This can lead to scenarios where input is used that the local ---Alex |
@apinner Ahh, my bad about the remote service. I see you were recommending to download the database. My second point still stands though. ---Alex |
What do you think of this selector? The trick would be then translating into a bash shell script... |
Its OK, what is it like on mobile/touch? |
Actually works well on mobile, but the additional list sorting just makes the list endless and confusing! |
@volumio Internally, all
So, just make sure your user input can be translated into that folder hierarchy, and it's pleasantly trivial. :-) ---Alex |
Yes, to make that more confortable we would actually need 2 selects, one for continent and the other for the region... |
It seems that all of the possible options for tzdata are in Anyway, while not in the most convenient format, it looks to be easily parseable --- and is already localized. ---Alex |
Definetely too long... Is there a way to reconfigure the tzdata from the actual time of the timezone? |
@volumio What do you mean, like configuring it based off of what time it is right now in their locale? That won't work, as there's a lot of messed up locales in the world. Even in just the US, it would fail as many states don't follow DST. ---Alex |
No I just mean retrieving the time from the browser's time, and then setting this as locale by understanding where is in respect to UTC |
@volumio I don't know about getting the time from the browser, but still, all you've done is acquired the time, not the time zone. The time, even compared to UTC, is insufficient to determine the time zone. The easiest (though certainly not only) problem is that DST (or lack thereof) is not universal. Thus it would be off at some point in the year for anyone who is in a zone that borders with another zone that doesn't match their DST observation. ---Alex |
I found this project[1][2] (MIT licensed) that can determine the modern time zone in IANA format (which is the format used by the symlinks) via the browser. Hopefully it is of some use. ---Alex [1] https://bitbucket.org/pellepim/jstimezonedetect Edited for markdown formatting typo |
Are we over complicating things? |
My 2 cents, the only difference I see in using the browser time and seeing the difference with UTC is that this isn't stable for locations where daylight savings time occurs. Having the actual time zone is very helpful for this. If you'd measure me currently, I'm at UTC + 2. In a couple of months I'll be back to UTC + 1, the alarm would be off by an hour, or know that it has changed (in which case this whole issue would become irrelevant because then local time simply is local time, which is also an option). |
https://www.youtube.com/watch?v=-5wpm-gesOY I'll say no more... |
WOW! So, let's find the simplest way and put it into volumio, I'm quite puzzled at this point... Fantastic channel BTW |
Regarding the angular-timezone-selector, would it be possible to take the result it returns and set things like so:
I also noticed moment-timezone (edit: correct syntax) |
As mentioned by aqw, |
consolidating all regional settings matters in one thread |
Currently there's no way to set the timezone via the web UI. This is a problem when using the Alarm functionality (which, granted, doesn't work terribly well right now #319).
It's not a big deal for me to run
dpkg-reconfigure tzdata
, but I imagine the console would be off-putting to some users.---Alex
The text was updated successfully, but these errors were encountered: