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 (i.e. if require 'tzinfo/data' fails), 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.
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.
You can find bugs reported prior to August 2013 on the RubyForge 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.
27 September 2013