Skip to content

Jruby 1.7.4 Timezone is inverted when creating a Time object #801

@flyinprogrammer

Description

@flyinprogrammer

So this is awkward. 🐢

irb(main):001:0> Time.new(2013,4,22,14,18,05,'-05:00')
=> 2013-04-22 14:18:05 +0500
irb(main):002:0> Time.new(2013,4,22,14,18,05,'+05:00')
=> 2013-04-22 14:18:05 -0500

It would appear it's just the printing however, because this is reporting the correct data:

irb(main):005:0> Time.new(2013,4,22,14,18,05,'-05:00').zone
=> "GMT-5"

asarih knows things about this defect:

flyinprogramer: why is Time in jruby inverting the timezone ?
asarih: flyinprogramer: cause it was a bug.
asarih: I thought I fixed it…
asarih: it's not. :-S

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions