Issue Details (XML | Word | Printable)

Key: JRUBY-2971
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Charles Oliver Nutter
Reporter: Jeremy McAnally
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JRuby

strftime isn't fully implemented

Created: 03/Sep/08 03:54 PM   Updated: 12/Jan/09 04:28 PM
Component/s: Core Classes/Modules
Affects Version/s: JRuby 1.1.4
Fix Version/s: JRuby 1.1.5

Time Tracking:
Not Specified

Environment: Mac OS X


 Description  « Hide
JRuby doesn't fully implement the standard C strftime like MRI does. For example:

Time.now.strftime("%D %T")

...does not work, though it should (and does on MRI).



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Charles Oliver Nutter added a comment - 03/Sep/08 03:59 PM
Fixed in 7637, but we need to add tests/specs so I'm leaving it open. Marked for 1.1.5.

Dmitry Jemerov added a comment - 04/Sep/08 01:21 AM
Is it correct that the implementation of %D in 7637 doesn't use locale-specific order of date components and separators?

Charles Oliver Nutter added a comment - 11/Oct/08 12:05 AM
Dmitry: I think that's the case, but I thought we were matching MRI behavior here. Does regular ruby use a locale-specific ordering?

Charles Oliver Nutter added a comment - 11/Oct/08 12:28 AM
Specs added to RubySpec in 88e34ec.