Syncing system time

Rob Brandt yellowdog-general@lists.terrasoftsolutions.com
Thu Mar 27 10:56:01 2003


In my YDL 2.2 system, /etc/localtime is a link to /usr/share/zoneinfo/PST8PDT.

date: Thu Mar 27 17:50:37 GMT 2003
date -u Thu Mar 27 17:50:41 UTC 2003

Thanks

Rob


Quoting Romain Kang <romain@kzsu.stanford.edu>:

> If you look at the date(1) man page, the two most likely sources
> of time zone info are /etc/localtime and the TZ environmental
> variable.  However, programs like system daemons disregard the TZ
> environment and rely on /etc/localtime.
> 
> If /etc/localtime was set up correctly, you should be able to
> remove TZ from your environment and still get the correct time
> when you run date.  If this doesn't work, then the solution should
> be simple:
> 	# cp /usr/share/zoneinfo/PST8PDT /etc/localtime
> 
> If that doesn't work, please show us the output of "date"
> and "date -u" taken at the same time.  This may provide some
> helpful clues.
> 
> Romain Kang                             Disclaimer: I speak for myself alone,
> romain@kzsu.stanford.edu                except when indicated otherwise.
> _______________________________________________
> yellowdog-general mailing list
> yellowdog-general@lists.terrasoftsolutions.com
> http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-general
>