4 ms·
Ask HN: Best way to show local time
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.
- yorwba 8y agoAre you sure HN localizes timestamps?
- slow_donkey 8y agoGood 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!