Time#getgm and Time#getlocal work incorrectly when usecs present
----------------------------------------------------------------
Key: JRUBY-1971
URL: http://jira.codehaus.org/browse/JRUBY-1971
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.1RC1
Environment: Latest JRuby 1.1RC1 from trunk
Reporter: Vladimir Sizikov
Assignee: Vladimir Sizikov
The following example:
{noformat}
local = Time.local(2008, 12, 30, 5, 30, 0, 100)
gmt = local.getgm
local2 = gmt.getlocal
puts local == local2
{noformat}
prints true in MRI, and false in JRuby.
The problem is due to #getgm and #getlocal methods' inability to copy the usecs.
Fix is coming.
--
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