Skip to content

NTP - UI should warn when the timezone in incorrect #2627

@brunetton

Description

@brunetton

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":

  • it's not clear for me what timezone string I should use:
    • Europe/Paris
    • TZ_Europe_Paris
    • CET-1CEST,M3.5.0,M10.5.0/3 (I don't think so)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions