-
Notifications
You must be signed in to change notification settings - Fork 637
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
NTP - UI should warn when the timezone in incorrect #2627
Comments
Update: I found the It allowed me to test and realize that, contrary to what I understood reading the doc:
Anyway, I still think user should be warned when an incorrect timezone is provided. Would you be opened to a PR for documentation ? Or is Thank you |
Not using zoneinfo names
This is intended to be used when building from source, either in code/espurna/config/general.h or via custom.h provided by the user
This is a valid TZ variable with the DST info, generated by this script by looking at '/usr/share/zoneinfo'-like directory structure and extracting the very last line from every file there This is a trade-off between dragging every TZ file into the firmware, or including a parser on top of the existing one that would be used to parse that zoneinfo blob (e.g. uploaded by the user), or forcing some kind of ui to include DST / SDT manually
Try typing |
Quoting #2608 (comment)
s/ntpTZ/ntpTZ value/
Also returning to #2608, libc time.h is a fairly limited standard implementation. I could grab timezone offset or 4char TZ tag name, but not much else. Actual implementation struct is hidden and internal to the libc (probably every libc, for that matter). No errno after tzset() or environment updates, no return values either 🤷 Similar to edit:
Wiki page table corrected (hopefully). |
Device
itead-sonoff-dual-r2
Version
1.18.0-gita518080a+github240830
Bug description
Today it's the day when I have to review my automatic door schedules. But here in France it's winter time (CET) and for now I was using CEST timezone for summer time. So it's time to change timezone.
If I understand well, it's possible to define a CET timezone so during winter local time will be CET, and during summer local time will be CEST.
Last time I was struggling with timezone (#2608) I was able to see the local time in logs (that was my lifesaver as I was able to check it the timezone is parsed and local time is correct). But I can't see it anymore in v1.18 so I'm "in the dark":
When I intentionally put a wrong timezone (random chars) and save the changes, the only feedback from UI is "Changes saved". As in #2626 I've no way to know if my input is correct or not.
It would be really useful to let user be aware of errors on save. At least instead of the "Changes saved" alert, it would be great to have "Incorrect timezone". Then user can search and find the error.
I didn't jump onto the code but if I could at least see something in logs it would be more than useful !
Thanks !
Steps to reproduce
No response
Build tools used
No response
Any relevant log output (when available)
No response
Decoded stack trace (when available)
No response
The text was updated successfully, but these errors were encountered: