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.
No comments:
Post a Comment