From: Rover Rhubarb Date: 2007-04-10T22:44:36+09:00 Subject: Re: TZ bug in Date and DateTime.strftime formatter? > Would this do the trick: > http://rubyforge.org/projects/tzinfo/ This is a handy little library, but it doesn't have a way of getting the current timezone for the location where it's run. Time does this. > And also: "The Date class does not support time zone offsets, in > that there is no way to create a Date object with a time zone." This seems to be the key. It's just not supported. That makes no sense really. With support in Time, and the ability to format a DateTime to show the timezone, there's no excuse for Ruby not givign the correct value of +0100. With all those libraries out there I'm surprised something this basic isn't available. I guess I'll just parse for the Daylight part and make my own offset - but it's a shame since my xml-tv code would otherwise be general - now it's going to be specific to my timezone -- Posted via http://www.ruby-forum.com/.