TZInfo is a Ruby library that provides daylight savings aware transformations between times in different timezones.
TZInfo requires a source of timezone data. There are two built-in options:
By default, TZInfo::Data will be used. If TZInfo::Data is not available, then TZInfo will search for a zoneinfo directory instead.
Custom data sources can also be created and used with TZInfo.
gem files are available on RubyGems.org:
Instructions for installing and using TZInfo can be found in the project readme file.
API Documentation is available on RubyDoc.info.
TZInfo and TZInfo::Data are released under the MIT license, see the project files (TZInfo, TZInfo::Data) for details.
There are two TZInfo mailing lists:
Source code repositories for TZInfo and TZInfo::Data are available on GitHub:
Please report any bugs, issues and feature requests through the GitHub issue tracker.
Information about releases can be found on GitHub:
Ruby on Rails (Active Support) uses TZInfo for timezone support. Rails can automatically store times in the database using UTC and convert to and from the user's timezone for display.
25 May 2014