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

Old tzdata in JRuby #2072

Closed
alno opened this Issue Oct 27, 2014 · 3 comments

Comments

Projects
None yet
2 participants
@alno
Copy link
Contributor

alno commented Oct 27, 2014

JRuby bundled tzdata doesn't contain recent changes to time zones in Russia, so Time.now works incorrectly:

In 14:57 MSK:

» jruby -e 'puts Time.now'                                                                                                 
2014-10-27 15:57:33 +0400`

To fix the issue JRuby needs to update bundled joda-time to 2.5, which contains correct tzdata rules.

» JRUBY_CP=joda-time-2.5.jar jruby -e 'puts Time.now'
2014-10-27 14:57:37 +0300

For now we are using JRUBY_CP variable as temporary workaround, but it only work with bash-based jruby launcher, not native one.

@mkristian

This comment has been minimized.

Copy link
Member

mkristian commented Oct 27, 2014

are you saying updating joda-time to 2.5 will solve this ?

@alno

This comment has been minimized.

Copy link
Contributor Author

alno commented Oct 27, 2014

Yes, exactly.

@mkristian

This comment has been minimized.

Copy link
Member

mkristian commented Nov 12, 2014

fixed via cce325d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.