Skip to content

Fix date.rewrite_frags#3119

Closed
skmp wants to merge 1 commit intojruby:masterfrom
skmp:fix/date-rewrite-frags-#2149
Closed

Fix date.rewrite_frags#3119
skmp wants to merge 1 commit intojruby:masterfrom
skmp:fix/date-rewrite-frags-#2149

Conversation

@skmp
Copy link
Contributor

@skmp skmp commented Jul 8, 2015

According to MRI, offset should be preserved and
added to the seconds.

Fixes #2149

For reference, https://github.com/ruby/ruby/blob/39051ba1b94c61e92f333e514982c8f1333c7223/ext/date/date_core.c#L3682.

DateTime.strptime ignored timezone offsets when initialized via seconds, which is the cause of the test fail on #2149. If offset is dropped, the timezone information is lost.

According to MRI, offset should be preserved and
added to the seconds.

Fixes #2149
@kares
Copy link
Member

kares commented Nov 13, 2015

your commit landed on master as: a0b6eda ... thanks for back-porting this.

@kares kares closed this Nov 13, 2015
@kares kares added this to the JRuby 9.0.5.0 milestone Nov 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants