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

Possibly a time zone issue ? #73

Closed
gustavolobo opened this issue Oct 9, 2017 · 0 comments
Closed

Possibly a time zone issue ? #73

gustavolobo opened this issue Oct 9, 2017 · 0 comments

Comments

@gustavolobo
Copy link

@gustavolobo gustavolobo commented Oct 9, 2017

irb(main):001:0> require 'tzinfo'
=> true
irb(main):002:0> tz = TZInfo::Timezone.get('Australia/Canberra')
=> #<TZInfo::DataTimezone: Australia/Canberra>
irb(main):003:0> tz.utc_to_local(Time.utc(2016,9,22,23,0,0))
=> 2016-09-23 09:00:00 UTC

I would expect 2016-09-23 10:00:00 UTC

@gustavolobo gustavolobo closed this Oct 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant