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.
[ Parent
| on HN ]
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.
An example of some of the pitfalls involved: http://search.cpan.org/~drolsky/DateTime-1.10/lib/DateTime.p...
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.