Like Jeremy I have /etc/localtime symlink'd to
/usr/share/zoneinfo/US/Arizona (Slackware machine). However, I have a
script in my /etc/cron.weekly that I created:
--- cut ---
#!/bin/bash
if [ -x /usr/sbin/ntpdate ]
then
/usr/sbin/ntpdate -t 20 clock.via.net
fi
if [ -x /sbin/hwclock ]
then
hwclock --adjust
hwclock --systohc
fi
--- end ---
Cut & paste that into a file, chmod 755... then insert it into your
crontab (varies slightly by distro) so that it runs once a week.
Hope that helps,
Tony Evans
Jeremy C. Reed wrote:
> On Wed, 30 Nov 2005, Siri Amrit Kaur wrote:
>
>> hwclock --show currently gives me 22:34
>>
>> How do I set the system to local time?
>
> Hi Siri,
>
> I have a symlink at /etc/localtime that points to my local timezone file.
>
> You can create (for your timezone) like:
>
> ln -sf /usr/share/zoneinfo/America/Phoenix /etc/localtime
>
> Then use:
>
> date 12011443
> hwclock --systohc
>
> The format of the date command is MMDDhhmm (Month, Day, Hour, Minute).
> Replace with your correct hour and minute.
>
> Jeremy C. Reed
>
> Media Relations and Publishing Services
> http://www.reedmedia.net/
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss