Skip to content

Commit

Permalink
Add link to the list of ActiveSupport timezones
Browse files Browse the repository at this point in the history
  • Loading branch information
merqlove committed Jul 18, 2016
1 parent e0f9585 commit 84474fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -10,7 +10,8 @@ Adding ability to detect timezone at UI side and get it within Rack/Rails via co
This gem created for usecase of loading detected TimeZone into Rails environment.
You can set cookie with TimeZone name at UI side(from Angular, React, Ember, Backbone or vanilla JS).
After that all XHR requests to your Rails/Rack backend can be identified by this Middleware.
In case when TimeZone name(s) is unsupported or key not found in cookies, middleware will fallback to defaults.
In case when TimeZone name(s) is unsupported or key not found in cookies, middleware will fallback to defaults.
By default we are using [ActiveSupport TimeZones](https://github.com/rails/rails/blob/master/activesupport/lib/active_support/values/time_zone.rb#L30), if AS is not installed and you haven't provided someone else, or not overrided main method, you will got empty `TimeZone` hash with Warning message.

## Installation

Expand Down

0 comments on commit 84474fb

Please sign in to comment.