Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.7.0.pre1
-
Fix Version/s: JRuby 1.6.8, JRuby 1.7.0.pre1
-
Component/s: None
-
Labels:None
-
Environment:jruby 1.7.0.dev (ruby-1.9.3-p203) (2012-05-13 8009c04) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_31) [darwin-x86_64-java]
-
Testcase included:yes
-
Number of attachments :
Description
strftime on a time seems to return different results than on a datetime. The result seems to have too many spaces.
I've attached a test to reproduce the problem.
Sorry, I should have said what the output is on my machine. Here it is:
[aaron@higgins psych (jruby)]$ ~/git/jruby/bin/jruby --1.9 -I.:lib:test test.rb
Run options: --seed 39595
F
Finished tests in 0.659000s, 1.5175 tests/s, 1.5175 assertions/s.
1) Failure:
test_datetime_formats_the_same_as_time(FormattingTest) [test.rb:9]:
— expected
+++ actual
@@ -1 +1 @@
-"2010-10-10 00:00:00.000000000 -07:00"
+"2010-10-10 00:00:00.000000000 -07:00"
1 tests, 1 assertions, 1 failures, 0 errors, 0 skips