Skip to content

Time: fix localtime(), getlocal(), parse() for TZ offset#5583

Merged
enebo merged 1 commit intojruby:masterfrom
dr-itz:timezone-fixes
Jan 30, 2019
Merged

Time: fix localtime(), getlocal(), parse() for TZ offset#5583
enebo merged 1 commit intojruby:masterfrom
dr-itz:timezone-fixes

Conversation

@dr-itz
Copy link
Contributor

@dr-itz dr-itz commented Jan 30, 2019

When a time is parsed with a TZ offset, t.zone returned an empty
string instead of nil like MRI. This in turn breaks ActiveSupport
Time.change() which then constructs new time values with the wrong
zone, ignoring the offset.

See jruby/activerecord-jdbc-adapter#980

When a time is parsed with a TZ offset, t.zone returned an empty
string instead of nil like MRI. This in turn breaks ActiveSupport
Time.change() which then constructs new time values with the wrong
zone, ignoring the offset.

See jruby/activerecord-jdbc-adapter#980
@enebo enebo added this to the JRuby 9.2.6.0 milestone Jan 30, 2019
@enebo enebo merged commit 83cba34 into jruby:master Jan 30, 2019
@enebo
Copy link
Member

enebo commented Jan 30, 2019

@dr-itz I don't get what is happening with that ci run but it looks unrelated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants