Time#gmt_offset returns incorrect values for DST
------------------------------------------------
Key: JRUBY-1652
URL: http://jira.codehaus.org/browse/JRUBY-1652
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.x
Environment: Ubuntu Linux 7.10, JRuby 1.1b1 (latest trunk)
Reporter: Vladimir Sizikov
Attachments: time_offset_updated.diff
Time.local(1980, 6, 28, 0, 0, 0, 0).gmt_offset returns 3600 in JRuby, but 7200
in MRI.
This causes one test failure from activesupport library:
2) Failure:
test_xmlschema(DateExtCalculationsTest)
[/opt/work/activesupport/./test/core_ext/date_ext_test.rb:178:in
`with_timezone'
/opt/work/activesupport/./test/core_ext/date_ext_test.rb:178:in
`test_xmlschema'
/opt/work/activesupport/./test/core_ext/date_ext_test.rb:178:in `run']:
<"1980-06-28T00:00:00-05:00"> expected to be =~
</^1980-06-28T00:00:00-04:?00$/>.
The proposed patch fixes the problem and eliminates the activesupport test
failure.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email