runnerup icon indicating copy to clipboard operation
runnerup copied to clipboard

Fix manual entry of time

Open knarrff opened this issue 4 years ago • 2 comments

Do not use (new Date()) to get the timezone offset from, but the date that was actually entered: d. This fixes the problem that the entered time was later reported as one hour later when DST was active at the current location.

This should fix #980.

knarrff avatar Apr 17 '22 21:04 knarrff

Could work

gerhardol avatar Apr 17 '22 22:04 gerhardol

I have changed the request even more after I realized that the old approach still had problems across different time zones, e.g. if "today" is within DST, but the entered date was not. The new approch deals with that and should be even more readable than the old.

knarrff avatar Apr 18 '22 17:04 knarrff

thanks

gerhardol avatar Feb 03 '23 17:02 gerhardol