logoalt Hacker News

Xirdusyesterday at 10:13 PM2 repliesview on HN

UTC for past events doesn't always work either. For example, historical employee punch-in times.

UTC timestamps should only ever be used for points in time in the most literal sense, and nothing else.


Replies

drdexebtjlyesterday at 10:35 PM

Why not? It sounds like it would be correct even if the employee has a shift that includes a offset change.

Future timestamps should be local because local timezone changes literally change the instant the event it will happen (relative to UTC). For past things, this can’t happen

show 1 reply
Terr_yesterday at 10:28 PM

If past timestamps (UTC or otherwise) are unreliable, then there is some kind of math-bug going on.

show 2 replies