"Carlos E. R." wrote:
From your header, I see that your local time is 5 hours less than UTC, so displaying UTC would be way off for you. I think you should set your hardware clock (CMOS) to UTC (in the bios), and then use Yast to configure your system to use local time, activating the box that says the CMOS keeps UTC. That way, although the internal time would be UTC (without dayligh savings adjustements twice a year), the system would know and display the correct local time. Like this:
cer@nimrodel:~> date Mon Sep 30 02:31:04 CEST 2002 cer@nimrodel:~> date -u Mon Sep 30 00:31:07 UTC 2002
-- Cheers, Carlos Robinson
El 02.09.29 a las 14:45, Michael D. Schleif escribió:
Date: Sun, 29 Sep 2002 14:45:22 -0500 From: Michael D. Schleif
To: suse-linux-e List Subject: [SLE] set system time ??? First post from a SuSE noobee ;>
An associate installed os and time was way, way off. I had him reboot and set cmos clock to gmt/utc; but, when system came up, system time was also gmt/utc.
yast2 allowed me to confirm timezone and I changed from local to gmt; but, system time didn't change.
So, I ran this from cli:
hwclock --hctosys --utc
Of course, this works; but, will it stick?
/etc/init.d/boot contains the only reference to hwclock that I can find in the init scripts; but, nothing like this invocation.
What is the SuSE way of doing this?
I imagine we're saying the same thing. cmos is set to utc. I went into yast/yast2 and changed the configuration to match. When I exited out of yast/yast2 the system clock is still set to utc. No matter what I changed in yast/yast2, *NO* change is exhibited in the system. Yet, my changes persist in yast/yast2 when I reenter yast/yast2. What does work, as I stated in my original post, is the cli hwclock invocation. Yes, the two (2) date commands work correctly, as you suggest. What is the SuSE way to make this change persist? On other *NIX'es, there exist init files that make that hwclock invocation, so each time the system boots, cmos and system clocks are synced. I cannot find any such init script on SuSE. What am I missing? -- Best Regards, mds mds resource 888.250.3987 Dare to fix things before they break . . . Our capacity for understanding is inversely proportional to how much we think we know. The more I know, the more I know I don't know . . .