[nmglug] Time and cron jobs

Bob Knight bob at bobknight.net
Tue Dec 7 18:21:26 PST 2004


For the date, your hwclock is in UTC and your system clock is loaded 
from it as such. Try, as root, "hwclock --hctosys --utc". See the 
hwclock man page for more info.

For cron, relative to the system time timezone...

Cheers,
Bob

Mars DeLapp wrote:

> I am trying to set up a backup script to run daily in the middle of 
> the night.
>
> First, a weird thing is happening with the time. date command shows:
>
> jmdelapp at comp010:~$ date
> Wed Dec  8 00:34:27 UTC 2004
> jmdelapp at comp010:~$ date -u
> Wed Dec  8 00:34:31 UTC 2004
>
> the file /etc/timezone contains:
> America/Denver
>
> But the date command (without -u) still shows UTC instead of MST
>
> Anyone know how to fix this?
>
> Second, I put this entry in /etc/crontab file
> 20 12 * * * root marsbackup.sh
>
> is the time in UTC or the local time zone?
>
> Mars
>




More information about the nmglug mailing list