etoa / etoa-gui

EtoA Game GUI
https://etoa.ch
GNU Affero General Public License v3.0
10 stars 7 forks source link

Replace show_timebox method with html5 datetime-local field #388

Closed mrcage closed 3 years ago

glaubinix commented 3 years ago

This is a bit confusing if you are in a timezone different than the server time. If I load the page right now it shows 24/08/2021 23:15 which is Zurich time. Clicking on reset changes this to 24/08/2021 22:15 (my local time).

Maybe we should have the reset button on the logs just ignore timezone and have everything set to server time.

mrcage commented 3 years ago

This is a bit confusing if you are in a timezone different than the server time. If I load the page right now it shows 24/08/2021 23:15 which is Zurich time. Clicking on reset changes this to 24/08/2021 22:15 (my local time).

Maybe we should have the reset button on the logs just ignore timezone and have everything set to server time.

Done.

Added Luxon javascript date time library to simplify working with time: https://moment.github.io/luxon