3 ms·
> STORE YOUR TIMESTAMPS IN UTC. NOT US Pacific or any other local timezone. What difference does it make if the timestamp includes the timezone? The UTC value
by zelly 6y ago
> STORE YOUR TIMESTAMPS IN UTC. NOT US Pacific or any other local timezone.
What difference does it make if the timestamp includes the timezone? The UTC value can be recovered. In some applications the timezone is useful e.g. when intraday times matter.
- bluGill 6y agoOdds are that you forgot to record the timezone at all, and it didn't matter until you already have users in different timezones who have saved data and they don't remember which timezone they saved everything in. If you record the timezone you can convert. Even then, it is easier to use UTC just because everyone else does and so you can feed UTC into any third party library and it will work.
- swift532 6y agoDaylight savings might get in the way, especially if daylight savings rules change some time later.