Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ask HN: Best way to show local time
2 points by slow_donkey on July 5, 2018 | hide | past | favorite | 2 comments
HN and others don't seem to require JS to show localized timestamps. Currently I'm using a library (Luxon) to convert iso8601 clientside from UTC. Is there a better way of approaching this?

Not sure IP is really a better solution but would love to get thoughts.




Are you sure HN localizes timestamps?


Good point, looks like relative time for recent dates. Could very well be server time for old threads.

Might be viable and is arguably a more user friendly approach. Thanks!




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: