I am using MongoDB with rails3, i need to store all the date formats in EST, i am using timestamps. even i configured app.rb with
config.time_zone = ‘Eastern Time (US & Canada)’
But it seems doing nothing.
can some one guide me, so that i need to store in EST and even while displaying, it should display in EST format only.
I am using MongoDB with rails3, i need to store all the date formats
Share
I used the following lines in my mongoid.yml in defaults
after adding this line with config.time_zone = ‘Eastern Time (US & Canada)’ in application.rb, everything is storing in EST format. It is because we don’t have active record for mongoid.