[nzlug] cron job

Nick Rout nick at rout.co.nz
Thu Aug 10 13:45:18 NZST 2006


The timezone reportd by date depends on two things, the system defaul
and the environment variable TZ. To be sure that you get the system
default:

TZ= date

Then any TZ defined in your environment is temporarily set to null and
you get the default printed out.


On Thu, 10 Aug 2006 13:22:49 +1200
Craig Box wrote:

> >> Lastly - what timezone is your machine set to?
> > 
> >    run date: it had shown NZST.
> >    run uname -a , it had shown EDT
> 
> uname -a shows the timezone that your kernel was built in, not the timezone
> your system is in.
> 
> On Debian/Ubuntu:
> 
> crb at machine:~$ cat /etc/timezone
> Pacific/Auckland
> 
> Craig
> 
> 
> _______________________________________________
> NZLUG mailing list NZLUG at linux.net.nz
> http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug

-- 
Nick Rout <nick at rout.co.nz>





More information about the NZLUG mailing list