From: Remco van 't Veer Date: 2005-11-08T23:40:55+09:00 Subject: Re: change default timezone On 11/8/05, Ara.T.Howard wrote: > On Tue, 8 Nov 2005, Remco van 't Veer wrote: > > > I am running a ruby web-application on a server in a different timezone and > > I would like to force it into thinking it's in my timezone (and do the > > proper adjustments). I thought about reopening the Time class and redefine > > some member but can't figure out which to change. Maybe there's some other > > way? The application is hosted on debian linux. > > this might get you going: > > harp:~ > cat a.rb > t = Time::now > p t > > ENV["TZ"] = "PST+8" > t = Time::now > p t > > harp:~ > ruby a.rb > Tue Nov 08 07:26:05 MST 2005 > Tue Nov 08 06:26:05 PST 2005 That's too obvious! ;) Thanks. Remco