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

Do I need this gem to be enabled if I am running my app under Linux? #13

acrolink opened this issue Mar 16, 2017 · 1 comment


Copy link

acrolink commented Mar 16, 2017

Thank you.

Copy link

philr commented Mar 16, 2017

No, the tzinfo-data gem is not needed on Linux.

TZInfo can read the system zoneinfo time zone files included in most Linux distributions and can therefore be used without the tzinfo-data gem.

You may still prefer to use tzinfo-data on Linux if:

  1. Your application needs to precisely control the version of the IANA time zone database being used.
  2. Your application cares about the difference between time zones defined by a set of transition times and those defined as links to or aliases of other time zones. Information about links/aliases is not available in the system zoneinfo files, but is included in tzinfo-data.
  3. The accuracy of TimezonePeriod#std_offset (the amount of time the clock is advanced in periods where daylight savings time is observed) is critical to your application. This information is not available in the system zoneinfo files, so has to be estimated by observing clock changes during transitions. The tzinfo-data gem includes the precise std_offset values. Note that TimezonePeriod#utc_total_offset will always be correct with both zoneinfo files and the tzinfo-data gem.

@philr philr added the question label Mar 16, 2017
@philr philr closed this as completed Mar 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

2 participants