Re: setting the system time?



Zach Uram wrote:
My new install of Debian 4.0 seems to have the wrong time, it says right now:

Tue Aug 12 09:42:34 UTC 2008

but the correct time is:

Tue Aug 12 05:42:00 EST 2008

How can I set this? I want it set once and for all so even after
server reboot it shall still be correct.


I used the debian-testing-i386-netinst.iso from July 30th and although I said *not* to set my clock to UTC, it did anyway.

Ron Johnson (again!) asked the right question: why do you have EST and not EDT?

Anyway, I ended up with the hwclock set to UTC. If I did:

hwclock --set --date="mm/dd/yyyy hh:mm:ss"
hwclock -s
hwclock --localtime

the next boot ended up alright. My timezone was already set correctly.

Using debian-40r4-i386-netinst.iso after that did *not* make the same mistake and kept the clock set to localtime.

I set the clock to local time because with VMware I boot M$ XP, which isn't too smart about those kind of things.

Hugo


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Time change question.
    ... Will> I set the clock to UTC, ... it is the OS kernel (and the hwclock utility) that cares ... when it initializes its own internal clock from the CMOS clock. ...
    (comp.os.linux.misc)
  • Re: Time change question.
    ... Will> I set the clock to UTC, ... it is the OS kernel (and the hwclock utility) that cares ... when it initializes its own internal clock from the CMOS clock. ...
    (comp.os.linux.misc)
  • Re: [opensuse] Time Issues 11.3
    ... hwclock is set to local or UTC. ... Another words system clock is always set ... to 1 hour off regardless if hwclock is local or UTC. ...
    (SuSE)
  • Re: [opensuse] Re: chrony and hwclock
    ... NTP only has to set the itnernal - software I beelive - system clock. ... That runs on UTC. ... Universal Time or local time, ... give that information to hwclock. ...
    (SuSE)
  • Re: daylight savings / time zone issue
    ... hwclock be set to UTC, which in my case would be 6 hours difference? ... Can I change my hardware clock to UTC via the linux command line? ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)