logoalt Hacker News

braiamp • today at 12:39 PM • 1 reply • view on HN

This is why you store two dates: what the user sent and what you need for calculations. What the user sent becomes your oracle and what you show the user (date time + timezone) and your derived utc to do datetime arithmetic


Replies

ekejjedjndbd • today at 12:41 PM

If the UTC is derived why store it (unless just as a performance concern e.g. materialised view type of thing)

➕ show 1 reply