irb(main):023:0> t=Time.parse(“12:20 EST”)
=> Sun Aug 31 22:50:00 +0530 2008
Since it is daylight saving in New York, I should be getting 21:50 not 22:50. The dst? method gives false, since it is not daylight saving in my timezone.
The Mac widget as well as http://www.timezoneconverter.com/cgi-bin/tzc.tzc give me the correct result.
(In order to run Time.parse on irb you [...]
Recent Comments