Hi! I want to display lots of DateTime struct in users local timezone. Is there a standard way of doing that?
I see two options:
- getting users timezone in plug and then rendering dates server-side (but I am not sure how to get the timezone from browser to assigns)
- output the time in UTC
2020-01-18 01:03:46Zand then do the magic in JS
Is there a preferred way of doing it?
I know there were a couple of similar questions already, but they were usually about saving the date-time in the DB.