Difference between revisions of "Timezone in RoR"
From Kolmisoft Wiki
Jump to navigationJump to search
Line 8: | Line 8: | ||
* Restart Apache | * Restart Apache | ||
Correct format is: | |||
ENV['TZ'] = 'Continent/Capital' |
Revision as of 13:53, 12 February 2009
If time is not displayed correctly in GUI and date command in SSH shows correct time, then:
- In file /home/mor/config/environment.rb write:
ENV['TZ'] = 'Europe/Vilnius'
Off course change timezone value to correct one.
- Restart Apache
Correct format is:
ENV['TZ'] = 'Continent/Capital'