Comment

Comment by slotrans

This was an aside and not the point of the article but I can't let it go:

> It is also a best practice to store naive datetimes representing UTC in databases.

It is most definitely NOT a best practice and you SHOULD NOT DO THIS.

If your database supports TIMESTAMP WITH TIME ZONE -- which the "aware" type per the article's terminology -- you should be using it. If your database doesn't, you should get a better one.

parent slotrans 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton