[EMAIL PROTECTED] haanm $ env | grep TZ [EMAIL PROTECTED] haanm $ Good idea, but no banana.
On Fri, 04 Mar 2005 09:32:39 +1300, Nick Rout <[EMAIL PROTECTED]> wrote: > I just found out something interesting whilst fiddling: > > TZ is the local users timezone setting, it can be set different to the > systemwide default of /etc/localtime. This is so someone logging in from the > other side of the world can have their own timezone, via setting > their TZ variable > > now most people will not have TZ set, as they are logging in to a local > machine and /etc/localtime will fix it. > > [EMAIL PROTECTED] nick $ env|grep TZ (no output, ie TZ is not set, even to > null, in my environment) > [EMAIL PROTECTED] nick $date > Fri Mar 4 09:29:00 NZDT 2005 > > BUT if TZ is present in your environment, but set to null, the system > will give UTC > > [EMAIL PROTECTED] nick $ TZ= date > Thu Mar 3 20:29:51 UTC 2005 > > (thats a space after TZ= , ie set TZ to null.) > > I think you should see if TZ exists in your environment by : > > env|grep TZ > > On Thu, 3 Mar 2005 15:07:07 -0500 > Michael Haan wrote: > > > [EMAIL PROTECTED] haanm $ echo $TZ > > > > [EMAIL PROTECTED] haanm $ > > > > > > > > On Fri, 04 Mar 2005 08:52:01 +1300, Nick Rout <[EMAIL PROTECTED]> wrote: > > > what is TZ set to? > > > > > > echo $TZ > > > > > > this takes preference over the system wide preference set by > > > /etc/localtime > > > > > > On Thu, 3 Mar 2005 13:27:34 -0500 > > > Michael Haan wrote: > > > > > > -- > > > Nick Rout > > > Barrister & Solicitor > > > Christchurch > > > <http://www.rout.co.nz> > > > <[EMAIL PROTECTED]> > > > > > > -- > > > [email protected] mailing list > > > > > > > > -- > > [email protected] mailing list > > -- > Nick Rout > Barrister & Solicitor > Christchurch > <http://www.rout.co.nz> > <[EMAIL PROTECTED]> > > -- > [email protected] mailing list > > -- [email protected] mailing list
