Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

root/plugins/tzinfo_timezone/README

Revision 4105, 0.8 kB (checked in by minam, 3 years ago)

tzinfo_timezone plugin

Line 
1 TZInfo Timezone
2 ===============
3
4 This plugin installs a replacement for the TimeZone class. The replacement
5 uses the TZInfo library (http://tzinfo.rubyforge.org) to do the time zone
6 conversions, and thus takes into account daylight saving, for free.
7
8 It is not a 100%-compatible replacement, however. If you use TimeZone#unadjust
9 anywhere, you'll need to replace those calls, possibly with #local_to_utc.
10 Also, the #adjust method is deprecated--it is better (and easier to read) if
11 you use the #utc_to_local method instead.
12
13 Note that you will need to have the tzinfo library installed separately--it is
14 not bundled with this plugin. You can easily install tzinfo as a gem:
15
16   gem install tzinfo
17
18 ---------------
19 Copyright (c) 2006 Jamis Buck (jamis@37signals.com)
20 released under the MIT license
Note: See TracBrowser for help on using the browser.