Hacker News new | ask | show | jobs
by snowfox 4711 days ago
Both are not hard to implement. But exact timestamp has a timezone problem, while 'xx ago' is universal.
2 comments

> Both are not hard to implement. But exact timestamp has a timezone problem

Specify a timezone in the timestamp. UTC is probably fine, especially if you are doing both, in which case, the main value of timestamps (AFAICT) is to compare the relative times of other posts that are hard to determine from the prose descriptions.

Make the timestamp relative to the viewer?
(serious question) How?
Moment.js is pretty useful if you do it client side.
Brilliant! I've been using timeago (http://timeago.yarp.com), but Moment.js (especially with its timezone support) may solve some of my problems better.