Suppose my app is something like StackOverflow.
That is how I'm doing ...
- The server is in another country, so I set it to UTC 00:00.
- I'm storing date as
- I'm not storing
- Date is being sent to the client in this format:
- I'm using angular filter to convert it to local time.
I have a few questions about it ...
1º Server TimeZone?
About my server (single server) ... should it be running with a "neutral" UTC (+00:00)? And what if, in the future, we move to a farm where servers run on different locations?
2º What should I store?
Currently, I'm storing just date as
DateTimeOffset. I'm reading about saving the
TimeZoneID but I'm seeing no use at all for this. Am I missing something?
Or should I store date as
DateTimeUtc with a
TimeZoneID and manually convert every date with the
3º How to convert to local time?
Is it safe to convert data on the client? Or date conversions should be always on the server side?
4º About DST.
Using my current approach. Will DST be respected?