Most active commenters
  • macintux(3)
  • kstrauser(3)

←back to thread

283 points move-on-by | 24 comments | | HN request time: 1.617s | source | bottom
1. burnt-resistor ◴[] No.45220171[source]
Always run production systems in the Etc/UTC timezone. This eliminates an entire class of problems while only creating minor inconveniences.
replies(5): >>45220222 #>>45220233 #>>45221046 #>>45221092 #>>45221989 #
2. Tepix ◴[] No.45220222[source]
For servers, i agree 100%. For desktop systems, not so much.
replies(2): >>45220291 #>>45220354 #
3. bornfreddy ◴[] No.45220233[source]
It also makes sense. Timezone is user specific - if you have users from all over the globe, they will need different settings, so this should be set in frontend.
4. actionfromafar ◴[] No.45220291[source]
Eastern Standard Tribe, represent!
replies(1): >>45221117 #
5. kawsper ◴[] No.45220354[source]
How else could you tell what time it is on the servers?
replies(1): >>45220482 #
6. raverbashing ◴[] No.45220482{3}[source]
That's easy, if you're Walmart just use the TZ of your corporate HQ

(That's what I heard anyway)

replies(3): >>45221116 #>>45221160 #>>45222286 #
7. macintux ◴[] No.45221046[source]
I work with a development team who manages data integration and migration for massive datasets, and they have sensibly set a standard that every date/time value they store in their databases will be UTC.

But they explicitly or implicitly have also decided not to store the timezone in the strings, so every single value is technically ambiguous. Absolutely drives me crazy.

Update: since there have been questions, these are strings, not native datetime values.

replies(4): >>45221416 #>>45221558 #>>45228759 #>>45238155 #
8. bayindirh ◴[] No.45221092[source]
You can also run in UTC+$YOUR_OFFSET timezone if you don't use DST.

On the other hand, UTCx timezones are not silver bullets if your fleet is a part of a multi-continent federation.

9. kstrauser ◴[] No.45221116{4}[source]
My non-Walmart startup was expanding from California to other regions many years ago, and there was some debate about whether we’d use UTC or America/Los_Angeles globally. I was part of Team Over My Dead Body.
replies(1): >>45222119 #
10. kstrauser ◴[] No.45221117{3}[source]
I appreciated the reference.
11. ThePowerOfFuet ◴[] No.45221160{4}[source]
Google's internal timestamps are in Pacific Time, too.
12. ta1243 ◴[] No.45221416[source]
> they have sensibly set a standard that every date/time value they store in their databases will be UTC.

Not sensible at all for future date/times.

13. shawnz ◴[] No.45221558[source]
Postgres always stores date/time values in UTC (if they are timezone-aware)
replies(1): >>45221608 #
14. macintux ◴[] No.45221608{3}[source]
These are strings. And not Postgres.
15. bityard ◴[] No.45221989[source]
I work for a company with servers, employees, and customers in basically every time zone around the world. And yet every server, internal tool, and workflow uses Pacific time. UTC is used precisely nowhere. Setting aside the issues of DST, I imagine it's convenient for the employees and managers in HQ but absolute madness for everyone else.
replies(2): >>45222348 #>>45225791 #
16. actionfromafar ◴[] No.45222119{5}[source]
But on which side? :)
replies(1): >>45222157 #
17. kstrauser ◴[] No.45222157{6}[source]
There can be only one!
18. madcaptenor ◴[] No.45222286{4}[source]
I work for a different company headquartered in the central time zone and we also do this. On some systems.
19. a012 ◴[] No.45222348[source]
Are you at Google? Because they also keep using US/Pacific timezone in every incidents where it affects everyone over the globe
replies(1): >>45222429 #
20. zappb ◴[] No.45222429{3}[source]
That description could match nearly any tech company in the Bay Area or Seattle and everything along the coast.
21. burnt-resistor ◴[] No.45225791[source]
How provincial. There are other ways.
22. stubish ◴[] No.45228759[source]
Even if you stored the timezone, the values are technically ambiguous. Even when you are using globally unique timezone identifiers like 'America/New_York' instead of 'EST' and its several meanings. A timestamp such as '2025-09-13 13:00 America/New_York' could end up referring to a different instant next week due to a correction in the timezone database. Unlikely for this sort of problem to happen and need correcting in major timezones, but it has happened for less popular and historical timezones. The way for them to be non-ambiguous, representing an unchangable instant in time, is to store the timestamp converted to a timezone that will never have retroactive changes and has no daylight savings time transitions, such as UTC. At which point, storing the timezone identifier is redundant (and violates the principle of not allowing illegal values to be represented if you follow that).
replies(1): >>45229140 #
23. macintux ◴[] No.45229140{3}[source]
I feel strongly that a string time value with no specified timezone is dangerous.

You have to make certain it is always handled as UTC, and if you export it to another system without making the timezone explicit, or anyone who is unfamiliar with the convention views it, you’ve lost the guarantee.

When you’re shuffling around petabytes of data, adding another few megabytes to include the “Z” at the end of every timestamp is hardly a major expense.

24. oftenwrong ◴[] No.45238155[source]
In many systems it is reasonable not to include a zone. Usually that goes hand-in-hand with the desire to use a more compact representation, such as storing a numerical timestamp with a customary interpretation (usually UTC or TAI). If you must store a string, you may as well include a zone. Using ambiguously-zoned timestamps is an invitation for bugs. I feel your pain.