Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@nothappy https://developer.mozilla.org/de/...
Please understand what this does.
Database should be agnostic, hence toISOString is right _as it stores UTC_.
Avoid storing non UTC / timezoned data. Some db's offer the possibiliy to store timezone data, but you'll might run into non fun soon. Daylight savings and stuff like that make it hard. Database UTC, rest handled in software. -
@ScriptCoded Now let's hope they don't go for eternal summer time, because they're "happy people"
-
Date.now() is my favorite bc it makes comparing records a lot easier. If your looking to display a shit ton of records in a table or something, I’d use the string maybe then.
Related Rants
How should I store the current date in firebase or any database? this is my current approach
Please review
https://pastebin.com/XVtfTcC2
question
firebase
reactjs