4 ms·
I can't stress enough how important it is to get dates, times and timezones correct in your code to avoid embarrassment or worse. Just yesterday, just when we t
by spuz 17y ago
I can't stress enough how important it is to get dates, times and timezones correct in your code to avoid embarrassment or worse. Just yesterday, just when we thought we'd ironed out all the timezone issues in our production code, our system rejected a bunch of customer data thinking the current time was actually an hour ahead of what it was. It turns out to be a bug in the Oracle JDBC driver that happens when connections are kept open while DST flips the clocks back but it goes to show that you can never be too careful when dealing with times and timezones.
- willwagner 17y agoAnd don't forget the Zune time bug which caused a bit of embarrassment for Microsoft last year/beginning of this year. It's hard to test every boundary and edge condition, especially if you are relying on black box testing to catch bugs.