Monday, December 13, 2010

Timezone

For rails to show distance_of_time_in_words, I had to setup the following in the application.rb file

config.time_zone = 'Mumbai'
config.active_record.default_timezone = :local


This made sense as mysql was setup to read the timezone from my laptop, which was Mumbai.

More information here.

No comments:

Post a Comment