SyoTimer icon indicating copy to clipboard operation
SyoTimer copied to clipboard

UTC+01

Open hubpork opened this issue 4 years ago • 1 comments

Hey First thanks for your script! Have a little Problem with the date and timeline zone. I pass the the day and hour with java variables. $("#periodic-timer_timezone_given").syotimer({ date: new Date("${day}T${hour}:00.000+01:00"), Everything is ok. But in Summertime it should be -02:00 and Wintertime this: -01:00 Is there a way to change it inside your script?

hubpork avatar Nov 17 '21 08:11 hubpork

Hello If you have a date and time for the UTC+0 timezone, try create a Date object using ISO format:

new Date("${date}T${time}:00.000Z")

The timezone and summer/winter time should be taken into on the user's browser side in accordance with the OS settings

mrfratello avatar Nov 19 '21 05:11 mrfratello