From: "David N. Springer" Date: 2005-11-09T00:15:05+09:00 Subject: Re: change default timezone Remco van 't Veer wrote: >Hi, > >My name is Remco, I am new to this list and still feeling my way >around ruby. If this issue has already been handled on this list I >apologize. > >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. > >TIA, >Remco > > Here is an alternate way, in case you don't want to hardcode it in your application. env TZ='PST+8' ruby -e 'p Time::now' Tue Nov 08 07:12:37 PST 2005 -- David