Plugins - timezone_fu

StarAdd to favorites

In 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.

Dan O'Shea

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

  • Currently 5.0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Internationalization

Tags

Comments

Add a comment

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?