-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add ability for user to change timezone #23
Comments
As a workaround in the mean time, you can set the timezone within the particular app. You can store the timezone in any python-legal format in your app.settings file. The example shows a hardcoded one for the US/Eastern time zone.
|
your example:
simulator produced: "Sunday 2017-01-22 22:55:10 Eastern Standard Time" |
Did you set timezone in app.settings? I had placed the value there to generalize the code, but it could be hardcoded as well. Python is returning a time relative to the machine you are running it on. In the case of the emulator, it is pulling the TZ from your computer, but on the Tingbot it is either undefined (which defaults to UTC) or set to UTC explicitly - I haven't dug deep enough to check. If you want to do a quick check, try the following:
see the python docs for more information... Ideally, the timezone value will be written to the SD card at the same time as the wireless information - I need to dig into the source and see what is being done.... |
Should probably work similarly to the Wifi setup (and hostname #22 perhaps!), configuration on the SD from Tide.
The text was updated successfully, but these errors were encountered: