3 ms·
It's good enough (and correct) to store unix timestamps. For displaying the date - your comment applies... Unix timestamp refers unambiguously to single point
by mirekrusin 9y ago
It's good enough (and correct) to store unix timestamps. For displaying the date - your comment applies...
Unix timestamp refers unambiguously to single point in time. Interpretation of this point in time in different timezones is complicated but it's outside of it.
- mrighele 9y agoI agree that storing unix timestamps is a good approach. My issue was with "then displayed to the proper locale by the client's device." I mean, by itself it is ok, but in the case of a web client one cannot unfortunately just use the Date object and convert the timestamp to a human readable string.