News for hackers. Stuff that matters.
Re:GitLab.com Downtime Postmortem by wpietri on Tuesday July 08, 2014 @11:01AM (#8004809)
Is that the lesson? Or just that everything should be in the same time zone?

If the company's staff is all in one time zone, I'm inclined to use that for servers, as otherwise people have to mentally juggle two time zones: local and UTC.

Re:GitLab.com Downtime Postmortem by felixgallo on Tuesday July 08, 2014 @11:41AM (#8005029)
That's a good question. UTC is almost certainly still the best candidate even in that case because:

* it's not affected by daylight savings time, which in many candidate timezones causes at least two complex and error fraught time discontinuities every year, and which requires manual intervention at the whims of the US Congress in the USA.

* UTC is the lingua franca of machine time communication -- if you ever have to, e.g., send data about transaction times, server event logs, order histories, etc., to any third party or API, then because there are 23 other timezones besides yours, and data normalization is important, they will almost certainly expect ISO8601 UTC. Yes, ISO8601 has time offsets. No, not all libraries implement them properly on either side.

* The first time you ever have logs from two different timezones -- e.g., a service provider log denominated in UTC and yours in PST -- you will hate computers so much that you will likely quit your job, throw your keys on the floor, and go run a hotdog stand down by the pier rather than deal with it. This is an honest response to time and localization issues but think of your children.

Re:GitLab.com Downtime Postmortem by supine on Thursday July 10, 2014 @04:52AM (#8014244)
...and just when you thought it was safe to go back outside leap seconds rear their ugly head and ruin your day.
Re:GitLab.com Downtime Postmortem by res0nat0r on Tuesday July 08, 2014 @11:03AM (#8004825)
This starts out to be the way most companies think, then before you know it you are big enough to start opening datacenters in other countries, then you have to deal with timestamp conversion.
Re:GitLab.com Downtime Postmortem by maddev on Tuesday July 08, 2014 @11:10AM (#8004869)
Why would you ever need to convert a timestamp? You typically parse a timestamp like "1999-03-29 20:02:04 CEST" and return a number of seconds since a given point in time (e.g. UNIX epoch if it must be). The returned time is obviously +0000 == UTC. If it's not your language/os/software sucks and its no wonder your hair is on fire.
Re:GitLab.com Downtime Postmortem by forgottenpass on Tuesday July 08, 2014 @11:40AM (#8005023)
You typically parse a timestamp like "1999-03-29 20:02:04 CEST" and return a number of seconds since a given point in time (e.g. UNIX epoch if it must be).

There's your conversion. I'm not saying it's not easy, I'm saying you're just pulling you out of a hole that your tools were configured to dig.

Re:GitLab.com Downtime Postmortem by supine on Thursday July 10, 2014 @04:54AM (#8014254)
An example of some of the pitfalls involved: http://search.cpan.org/~drolsky/DateTime-1.10/lib/DateTime.p...
Re:GitLab.com Downtime Postmortem by korzun on Tuesday July 08, 2014 @01:51PM (#8005739)
Because it's always easier said than done.

Multiple applications in different languages that are running on different environments and managed by different teams posses a real challenge.

Re:GitLab.com Downtime Postmortem by maddev on Sunday July 13, 2014 @11:01AM (#8027500)
It's not like am speculating. I implemented these things. The hardest part is agreeing on TZ symbols (e.g. Indian Standard Time vs Ihoa Standard Time). E.g. its not very hard to get right.