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 \___)=(___/
Philip Ross
2006-Jun-18 13:58 UTC
[Rails] Re: Hosting timezone differs of clients timezone
Carlos Paramio 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 Ross http://tzinfo.rubyforge.org/ -- DST-aware timezone library for Ruby
Carlos Paramio
2006-Jun-21 05:50 UTC
[Rails] Re: Hosting timezone differs of clients timezone
Philip, It worked like a charm. Thanks a lot! Philip Ross escribi?:> Carlos Paramio 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. >-- 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 \___)=(___/