From: Rover Rhubarb Date: 2007-04-10T23:00:36+09:00 Subject: Re: TZ bug in Date and DateTime.strftime formatter? The plot thickens. Playing around with DateTime I thought I had it. DateTime.now.zone seems to give the right result. So I went back to my test cases. Look at this: irb(main):008:0> dt_summer = DateTime.parse("1 August 2006 15:25") => # irb(main):009:0> dt_winter = DateTime.parse("1 November 2006 15:25") => # irb(main):010:0> dt_summer.zone => "Z" irb(main):011:0> dt_winter.zone => "Z" irb(main):012:0> dt = DateTime.now => # irb(main):013:0> dt.zone => "+0100" So the zone for a parsed DateTime is 'Z' but for 'now' is correct at '+0100' !#$%#$@ (As they used to say in the comic books, not realizing that they were coding in perl) -- Posted via http://www.ruby-forum.com/.