rNdom
rNdom
TTCTheo's Typesafe Cult
Created by rNdom on 4/4/2025 in #questions
how to handle DST and/or timezones on javascript?
Im building an application where users can schedule and reserve parkings for their cars. I currently manage correctly (i guess) the timezone changes, i.e the schedules are saved on UTC-0 in the database and its shown on the local timezone for the user on clientside. The issue here is daylight saving times. On 05/04/2025, in Chile the hour would set us at UTC-4 instead of UTC-3, so every schedule that was previously saved for, i.e 15:00 on saturday, saved on its UTC-0 representation at the database, would (i think) look like 14:00, and that's not how it should be. Also, there is a quite weird bug (that im currently fixing) where if i save schedules from now 04/04/2025 till 31/04/2025, the day 05/04/2025 (when the DST changes) is repeated and the last day isnt 31 but 30. But that is from another issue so it doesnt really matter, just saying hehe
6 replies
TTCTheo's Typesafe Cult
Created by rNdom on 3/15/2025 in #questions
aws lambda + drizzle orm help me please
No description
65 replies