Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/farski/tzip
Simplifies defining time zones in Rails apps with ZIP codes.
https://github.com/farski/tzip
Last synced: about 1 month ago
JSON representation
Simplifies defining time zones in Rails apps with ZIP codes.
- Host: GitHub
- URL: https://github.com/farski/tzip
- Owner: farski
- Created: 2011-02-27T23:29:29.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2019-03-19T21:51:10.000Z (almost 6 years ago)
- Last Synced: 2024-11-29T03:09:38.376Z (about 2 months ago)
- Language: Ruby
- Homepage: https://github.com/farski/TZip
- Size: 152 KB
- Stars: 18
- Watchers: 4
- Forks: 20
- Open Issues: 8
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# 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')