Yep…. I’ve had to fix several apps in the past built by others who have also used time zones incorrectly, so I know what’s involved.
That’s why I now just advise using UTC for all dates unless there’s a specific reason why local timezones are needed.
There is no (simple) native Bubble way to convert dates from one time zone to another, so I’d recommend using Luxon (although you can do it with vanilla JavaScript).
One thing I see that catches a lot of people out here, is the use of Current Date/time rounded down to day in UTC, thinking that will give the current local Day in UTC. It won’t (at least not always) and is one of the most common reasons I’ve seen for date issues in the apps I’ve been called on to fix.
4 Likes