On 02/07/2015 03:01 PM, Jonathan Billings wrote:
On Sat, Feb 07, 2015 at 01:05:58PM -0600, g wrote:
so much for all that.
i just thought it was working. :-(
only way i can get system clock to show correct CST is to set bios clock to CST.
I suggest reading the man page for 'hwclock'. Namely, the --utc option. If you don't tell your system that the BIOS is stored as UTC, then it will assume it's local time.
i have run 'man hwclock' so many times that the a, c, h, k, l, m, n, o keys have gray lettering and the rest are black. so i now have one terminal with 'man hwclock' left open. :-D
[geo@boxen ~]$ su Password: [root@boxen geo]# hwclock --utc Sat 07 Feb 2015 05:28:00 PM CST -0.219402 seconds [root@boxen geo]# hwclock --utc --date="2/07/15 23:30:00" Sat 07 Feb 2015 05:29:35 PM CST -0.390922 seconds [root@boxen geo]# hwclock --set --utc --date="2/07/15 23:30:00" [root@boxen geo]# hwclock Sat 07 Feb 2015 11:30:11 PM CST -0.828490 seconds [root@boxen geo]# hwclock --utc --set --date="2/07/15 23:30:00" [root@boxen geo]# hwclock Sat 07 Feb 2015 11:30:04 PM CST -0.672246 seconds [root@boxen geo]# hwclock --set --date="2/07/15 23:30:00" --utc [root@boxen geo]# hwclock Sat 07 Feb 2015 11:30:08 PM CST -0.734744 seconds [root@boxen geo]# hwclock --set --utc --date="2/07/15 23:30:00" [root@boxen geo]# hwclock Sat 07 Feb 2015 11:30:03 PM CST -0.531615 seconds [root@boxen geo]# hwclock --utc --set --date="2/07/15 23:30:00" [root@boxen geo]# hwclock Sat 07 Feb 2015 11:30:03 PM CST -0.422288 seconds [root@boxen geo]#
in fact, i have run combination's so many times and of various ways, only difference i can think of is changing the sequence, which still does no good.
or, i have run it so many different ways that my brain is failing to think of right combination.
running "system-config-date", the only way i can get bios clock to show UTC is by setting both system and zone to UTC, which makes system UTC.
/etc/adjtime is still;
6.736246 1423375017 0.000000 1423375017 UTC
[root@boxen etc]# grep UTC * adjtime:UTC grep: extlinux.conf: No such file or directory Binary file localtime matches [root@boxen etc]# grep GMT * grep: extlinux.conf: No such file or directory Binary file localtime-org matches protocols:gmtp 100 GMTP # GMTP services:n1-rmgmt 4447/tcp # N1-RMGMT services:n1-rmgmt 4447/udp # N1-RMGMT [root@boxen etc]# grep CST * grep: extlinux.conf: No such file or directory Binary file localtime-0001 matches mime.types:application/CSTAdata+xml services:subntbcst_tftp 247/tcp # SUBNTBCST_TFTP services:subntbcst_tftp 247/udp # SUBNTBCST_TFTP services:rcst 3467/tcp # RCST services:rcst 3467/udp # RCST services:cst-port 3742/tcp # CST - Configuration & Service \ Tracker services:cst-port 3742/udp # CST - Configuration & Service \ Tracker [root@boxen etc]#
that is about it for this 'chemo brain' to come up with.