|
|
|
|
|
by sfn42
362 days ago
|
|
You're completely right, for these niche cases it matters. I'm not saying you should indiscriminately apply UTC to every problem, I'm just saying usually datetimes should be stored as UTC. And the reason I feel the need to say this is that most systems I've worked on don't do that. They use local time for things that have no business being local time. UTC should be the default solution, and local datetime usage should be a solution in the few situations where its needed. And yeah, dateonly is nice. If the db doesn't support it you can just store it as a string and serialize/deserialize it to a DateOnly type in your software. |
|
For internal timestamps such as ordering events in a database, them UTC or something similar is nice. Bet the point then is that those values are not really meaningful or important in the analog world.