Hi,
In message "Re: Time bug?"
on Mon, 16 Oct 2006 07:25:14 +0900, "has" <has.temp3 / virgin.net> writes:
|I'm trying to figure out how Ruby's Time class deals with timezones and
|standard/summer time, and noticed the following inconsistency (second
|one down):
|
|t = Time.local(2006, 3, 26, 0, 59, 59) # winter
|p [t.isdst, t] # [false, Sun Mar 26 00:59:59 GMT 2006]
|
|t = Time.local(2006, 3, 26, 1, 0, 0) # summer
|p [t.isdst, t] # [true, Sun Mar 26 02:00:00 BST 2006] # why not 01:00:00???
Because Sun Mar 26 01:00:00 BST 2006 does not exist because of DST
shifting.
matz.