Dave's Free Press: Journal

violence, pornography, and rude words for the web generation

 

Recent posts

(subscribe)

Recently commented posts

(subscribe)

Journals what I read

geeky politics rant silly religion meta music perl weird drinking culture london language transport sport olympics hacking media maths web photography etiquette spam amazon film bastards books bryar holidays cars palm telecoms travel yapc bbc clothes rsnapshot phone environment whisky security home radio lolcats deafness curry art work privacy iphone linux bramble unix go business engineering kindle gps economics latin anglo-saxon money electronics
Fri, 16 Aug 2013

Today I Learned ...

When storing a past event, always convert it into UTC and store it that way (I knew that). But when storing a future event (esp. if it's more than a year in the future), store it in the local timezone and only convert to UTC on the given day. This way you can properly handle the changes to time zones and/or daylight savings that might happen in the meantime.

(via Domm's blog)

Posted at 15:00 by David Cantrell
keywords: geeky
Permalink | 0 Comments

Sorry, this post is too old for you to comment on it.

Archive