# Time.now problems on production environment

**URL:** <https://www.ruby-forum.com/t/time-now-problems-on-production-environment/179045>\
**Category:** Rails\
**Created:** [November 16, 2009, 1:12pm UTC](https://www.ruby-forum.com/t/time-now-problems-on-production-environment/179045 "2009-11-16T13:12:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![captaffy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f04885/32.png) [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Post date:** [November 16, 2009, 1:12pm UTC](https://www.ruby-forum.com/t/time-now-problems-on-production-environment/179045/1 "2009-11-16T13:12:06Z")

</div>

I have some problems on production environment with Time.now. It gives a  
different time to the one I get on development. In environment.rb I have  
config.time\_zone = “Madrid”, but when I put Time.now on the console, I  
get the name of the day (Friday, por example) on differente languages if  
I compare development and production. I’ll appreciate any help.
