views:

189

answers:

1

Hi all,
How can I set my rails application with custom timezone? I want to set my application timezone with UTC-04:00 without daylight saving.

update: To clarify my question, I understand that I can set the time zone name in the environment.rb file with one of the names from TimeZone constants. I want my application timezone as UTC -04:00 without daylight saving.

Thanks, Soe Moe

A: 

In your environment.rb file there is a line that looks like this. My application is in UTC, but you can use any supported timezone.

# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for finding time zone names.
config.time_zone = 'UTC'
Beerlington
thanks for your answer. But it is not what I want to know. Please see my updated question.
Soe Moe