Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Simplifies defining time zones in Rails apps with ZIP codes.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 Guardfile
Octocat-spinner-32 Rakefile
Octocat-spinner-32 TODO
Octocat-spinner-32 readme.md
Octocat-spinner-32 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')
Something went wrong with that request. Please try again.