JRuby

strftime isn't fully implemented

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: JRuby 1.1.4
  • Fix Version/s: JRuby 1.1.5
  • Component/s: Core Classes/Modules
  • Labels:
    None
  • Environment:
    Mac OS X
  • Number of attachments :
    0

Description

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).

Activity

Hide
Charles Oliver Nutter added a comment -

Fixed in 7637, but we need to add tests/specs so I'm leaving it open. Marked for 1.1.5.

Show
Charles Oliver Nutter added a comment - Fixed in 7637, but we need to add tests/specs so I'm leaving it open. Marked for 1.1.5.
Hide
Dmitry Jemerov added a comment -

Is it correct that the implementation of %D in 7637 doesn't use locale-specific order of date components and separators?

Show
Dmitry Jemerov added a comment - Is it correct that the implementation of %D in 7637 doesn't use locale-specific order of date components and separators?
Hide
Charles Oliver Nutter added a comment -

Dmitry: I think that's the case, but I thought we were matching MRI behavior here. Does regular ruby use a locale-specific ordering?

Show
Charles Oliver Nutter added a comment - Dmitry: I think that's the case, but I thought we were matching MRI behavior here. Does regular ruby use a locale-specific ordering?
Hide
Charles Oliver Nutter added a comment -

Specs added to RubySpec in 88e34ec.

Show
Charles Oliver Nutter added a comment - Specs added to RubySpec in 88e34ec.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: