Plugins - timezone_fu
Add to favoritesIn honor of techno weenie and the attachment_fu plug-in our plug-in was christened timezone_fu.
Timezone_fu makes it really easy to deal with datetime fields in your models. It adds a method to your models has_timezone that takes a hash of options. the README for the plugin describes all of the options but below is an example:
class Event < ActiveRecord::Base
has_timezone :fields => [ :start_datetime, :end_datetime]
end
Our Event model has three fields a start_datetime and end_datetime and a timezone. Adding has_timezone to the model changes the behavior of the two datetime attributes. Please read our homepage for more.
http://hackd.wordpress.com/2007/11/23/sexy-time-zones-in-ruby-on-rails-with-timezone_fu/
http://www.thrivesmart.com/open_source/timezone_fu
Ruby's
Internationalization
