Simplifies defining time zones in Rails apps with ZIP codes.
Ruby
Pull request Compare This branch is 3 commits behind farski:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
spec
.DS_Store
.gitignore
Gemfile
Gemfile.lock
Guardfile
Rakefile
TODO
readme.md
tzip.gemspec

readme.md

TZip

TZip makes it a little bit easier to set TimeZones in a rails app, since it can figure out the appropriate identifier from a ZIP code.

Install & Implement

$ gem install tzip

# Gemfile
gem 'tzip'

Usage

# Set the default time zone for a Rails app
# Rails configuration file (config/application.rb or config/environments/development.rb, etc)
config.time_zone = ActiveSupport::TimeZone.find_by_zipcode('90210')