I live in timezone GMT+5.30. My rails application while saving the values for updated_at and created_at always saves the GMT time. How can i default my rails application to enter the time in GMT+5.30 time?
I live in timezone GMT+5.30. My rails application while saving the values for updated_at
Share
It took me a while to catch this one too …
in your environement.rb file, there is a :
change it to :
for example, and the time displayed in your views will be automatically converted.
Rails just stores time like this by default. it is you locale that convert the time to the good timezone.