[prev in list] [next in list] [prev in thread] [next in thread]
List: ruby-core
Subject: [ ruby-Bugs-9220 ] Time conversion from UTC to local appears to apply 2007 rules to 2006 dates
From: <noreply () rubyforge ! org>
Date: 2007-03-12 21:19:28
Message-ID: 20070312211927.057FB5240B68 () rubyforge ! org
[Download RAW message or body]
Bugs item #9220, was opened at 2007-03-12 16:19
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=9220&group_id=426
Category: Core
Group: 1.8.4
Status: Open
Resolution: None
Priority: 3
Submitted By: Howard Ferch (hferch)
Assigned to: Nobody (None)
Summary: Time conversion from UTC to local appears to apply 2007 rules to 2006 dates
Initial Comment:
Execute the following code on Windows in North America
t = TIme.local(2006,11,5,0,0,0)
u = t + (6 * 60 * 60)
puts(u.strftime("%Y%m%d %H:%M:%S - should be 2006/11/05 06:00:00"))
result is:
2006/11/05 05:00:00 - should be 2006/11/05 06:00:00
November 5th, 2006 is the date that Daylight Saving Time would have ended last year \
if the new 2007 North American rules had been in effect last year. In reality the \
switch last year was on Oct 29, 2006 and that date also gives incorrect results. \
March 11, 2007 gives the correct result.
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=9220&group_id=426
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic