Hosting timezone differs of clients timezone

Hi,

I have a website in production wich uses a lot of date and time
calculations to show specific information.

The timezone of my hosting service (Dreamhost) is PDT, and the timezone
of my potential clients is CEST. There are 9 hours of difference between
them.

Is there an environment variable that I could adjust in my rails
application, so all date/time values be set to CEST timezone?

Thanks.

Carlos Alberto Paramio Danta .–.
http://www.sinfoniadebits.com/ |o_o |
email : carlosparamio @ gmail.com |:_/ |
jabber: parax @ jaim.at // \
----------------------------------------( | | )–
Fingerprint 41C6 D2BE 7DE7 AB61 C23F /'_ /`
F697 5A1D 1849 01B8 D318 _)=(
/

Carlos P. wrote:

I have a website in production wich uses a lot of date and time
calculations to show specific information.

The timezone of my hosting service (Dreamhost) is PDT, and the timezone
of my potential clients is CEST. There are 9 hours of difference between
them.

Is there an environment variable that I could adjust in my rails
application, so all date/time values be set to CEST timezone?

Set the TZ environment variable in your config/environment.rb file.
E.g.:

ENV[‘TZ’] = ‘Europe/Madrid’

The allowed values for TZ can be found by looking in the
/usr/share/zoneinfo directory.


Philip R.
http://tzinfo.rubyforge.org/ – DST-aware timezone library for Ruby

Philip,

It worked like a charm. Thanks a lot!

Philip R. escribió:

Set the TZ environment variable in your config/environment.rb file. E.g.:

ENV[‘TZ’] = ‘Europe/Madrid’

The allowed values for TZ can be found by looking in the
/usr/share/zoneinfo directory.


Carlos Alberto Paramio Danta .–.
http://www.sinfoniadebits.com/ |o_o |
email : carlosparamio @ gmail.com |:_/ |
jabber: parax @ jaim.at // \
----------------------------------------( | | )–
Fingerprint 41C6 D2BE 7DE7 AB61 C23F /'_ /`
F697 5A1D 1849 01B8 D318 _)=(
/