Skip to content
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

TimeZone in ISO string {new Date().toISOString()} #296

Open
woodix2023 opened this issue Mar 5, 2024 · 1 comment
Open

TimeZone in ISO string {new Date().toISOString()} #296

woodix2023 opened this issue Mar 5, 2024 · 1 comment

Comments

@woodix2023
Copy link

How to display ISO date and time string taking into account TimeZone?

@jberezin
Copy link

I created option/select controls where the user could pick their timezone and pick their DST Type (USA,EU, or None).

I saved those options using arduinojson.

Then I add the timezone value to the iso time hours and add one more ( Hour++) if they are currently in Daylight savings time.

A simpler way may have been to use this branch: #278 but I am not sure because I didn't see that merge request until I had finished implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants