Archive for the ‘DST’ Category

Watch your UTCing…

After a good few hours of investigating a bug at work yesterday, I came across a weird Ruby feature…. The #utc method on Time objects is destructive and modifies the receiver.
$ irb
ruby-1.8.6-p383 > a = Time.now
=> Wed Apr 14 15:36:21 +0100 2010
ruby-1.8.6-p383 > a.utc
=> Wed Apr 14 14:36:21 UTC 2010
ruby-1.8.6-p383 > a
=> [...]

Daylight Savings Time Woes

Daylight Savings Time (DST) is one of those things you don’t really think about. You get an extra hour in bed in the Spring and an hour less in the Autumn, other than that and having to change the clocks you don’t have to think about much. Oh my, just be wait until you have [...]