Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upCan't get canonical zone #97
Comments
This comment has been minimized.
This comment has been minimized.
The TZInfo::DataSource.get
# => #<TZInfo::DataSources::RubyDataSource: tzdb v2018i, tzinfo-data v1.2018.9>
TZInfo::Timezone.get("Europe/Skopje").canonical_zone
# => #<TZInfo::DataTimezone: Europe/Belgrade> If you install tzinfo-data (or add it to your Gemfile), then you should get the correct result (which is actually Europe/Belgrade).
|
philr
added
the
question
label
Jan 16, 2019
philr
closed this
Jan 16, 2019
This comment has been minimized.
This comment has been minimized.
Thanks a lot Phil! I think it could be useful to mention this gotcha in the docs. |
This comment has been minimized.
This comment has been minimized.
It is mentioned in the documentation for the |
jablan commentedJan 16, 2019
Hi, I'm trying to get a canonical timezone, for example from
Europe/Skopje
. On my machine i have:but in
irb
I'm getting:The source is ok:
Am I doing something wrong?