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
Closed

Old tzdata in JRuby #2072

alno opened this issue Oct 27, 2014 · 3 comments
Milestone

Comments

@alno
Copy link
Contributor

@alno 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
Copy link
Member

@mkristian mkristian commented Oct 27, 2014

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

@alno
Copy link
Contributor Author

@alno alno commented Oct 27, 2014

Yes, exactly.

@mkristian
Copy link
Member

@mkristian 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
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants