-
-
Notifications
You must be signed in to change notification settings - Fork 224
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
[Improvement] Make Date-Format ISO-conform #913
Comments
I made a quick experiment to see what this would look like. I used the toISOString() method. It outputs the date and time following ISO8601, as per your suggestion. See also https://www.w3schools.com/jsref/jsref_toisostring.asp. The result looks like this: I honestly don't know if Zulu time is a better choice for someone living in CEST, but this is now strictly ISO8601. Maybe those who find this issue important could experiment a little bit and come up with a specific suggestion how to display the date/timestamp. I copy a diff of my patch below as starting point for you. Thanks :)
|
Hi thanks for quick testing! I think there might me some options or flags to adjust to time-zones and DST if necessary. I think NTP delivers also UTC only. My only wish was to print date in YYYY-mm-dd format so just swap days and year. |
LOL, what a pleasure! But I'm sorry, my programming skills are somewhere between '8051 Assemlby and QBASIC. But I can do some testing, habe several boards spare here and not afraid to fry them ;-) |
ESP-Time: 2023-07-24, 07:15:04 |
Hi,
on several pages (Start Page, Live, System, Sunrise / Sunset) the date format is in "German Style" i.e. DD.MM.YYYY.
I propose to change it to ISO8601-Style i.e. YYYY-MM-DD or at least to make it configurable in the Web-UI.
Display view seems to be already correct :-)
Taking a quick look at 'api/index' it seems internally the Unix-Timestamp is used, right?
Best Regards, Mark
The text was updated successfully, but these errors were encountered: