Skip to content

Time.new with explicit timezone string will display as UTF with +00:00. #5400

@enebo

Description

@enebo
jruby -e 'time = Time.new(2013, 2, 20, 0, 0, 0, "+00:00"); p time'

We display:

2013-02-20 00:00:00 UTC

MRI displays:

2013-02-20 00:00:00 +0000

If we supply anything else we match MRI:

jruby -e 'time = Time.new(2013, 2, 20, 0, 0, 0, "+10:00"); p time'
2013-02-20 00:00:00 +1000

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions