Time.gm should not allow negative
----------------------------------
Key: JRUBY-1554
URL: http://jira.codehaus.org/browse/JRUBY-1554
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.1b1
Environment: ruby 1.8.5 (2007-11-11 rev 4842) [i386-jruby1.1b1], OS X
10.4.9, java 1.5
Reporter: Daniel Berger
Priority: Minor
Time.gm(-1) raises an ArgumentError in MRI. JRuby returns a date:
{noformat}
$ jirb
irb(main):001:0> Time.gm(-1)
=> Fri Jan 01 00:00:00 UTC 1999
{noformat}
--
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