Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jan 30, 2019

Commits on Jan 30, 2019

  1. Time: fix localtime(), getlocal(), parse() for TZ offset

    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
    dr-itz committed Jan 30, 2019
    Configuration menu
    Copy the full SHA
    d662bc9 View commit details
    Browse the repository at this point in the history