Display correct Local Time with DST Change

Owen, thank you very helpful.
I had looked at a number of posts using pytz but was stuck on trying to do in the client.

I have half implemented and seems to be working with a hard coded time zone.

Now just need to dynamically pass the timezone to the server.
anvil.tz.tzlocal() seems to give me the offset and not the time zone
<anvil.tz.tzlocal (-4 hour offset)>

Regardless: I have the default time zone of each user in a database so I can just use that.

1 Like