Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.3.1
-
Fix Version/s: JRuby 1.4
-
Component/s: Core Classes/Modules
-
Labels:None
-
Number of attachments :
Description
JRuby just outputs %h, not the month name.
$ ruby -e 'puts Time.now.strftime("%d %h %Y")'
10 Aug 2009
$ /opt/jruby/bin/jruby -e 'puts Time.now.strftime("%d %h %Y")'
10 %h 2009
$ ruby -v
ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-solaris2.10]
$ /opt/jruby/bin/jruby -v
jruby 1.3.1 (ruby 1.8.6p287) (2009-06-15 2fd6c3d) (Java HotSpot(TM) Client VM 1.6.0_11) [x86-java]
Attachments
Issue Links
| This issue is related to: | ||||
| JRUBY-5255 | Date#strftime fails to honor "%3N" format |
|
|
|
To be fair, %h isn't documented in the Ruby docs. However, MRI appears to use the underlying C strftime, which does tend to support more than Ruby documents.