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 at boxen ~]$ su Password: [root at boxen geo]# hwclock --utc Sat 07 Feb 2015 05:28:00 PM CST -0.219402 seconds [root at boxen geo]# hwclock --utc --date="2/07/15 23:30:00" Sat 07 Feb 2015 05:29:35 PM CST -0.390922 seconds [root at boxen geo]# hwclock --set --utc --date="2/07/15 23:30:00" [root at boxen geo]# hwclock Sat 07 Feb 2015 11:30:11 PM CST -0.828490 seconds [root at boxen geo]# hwclock --utc --set --date="2/07/15 23:30:00" [root at boxen geo]# hwclock Sat 07 Feb 2015 11:30:04 PM CST -0.672246 seconds [root at boxen geo]# hwclock --set --date="2/07/15 23:30:00" --utc [root at boxen geo]# hwclock Sat 07 Feb 2015 11:30:08 PM CST -0.734744 seconds [root at boxen geo]# hwclock --set --utc --date="2/07/15 23:30:00" [root at boxen geo]# hwclock Sat 07 Feb 2015 11:30:03 PM CST -0.531615 seconds [root at boxen geo]# hwclock --utc --set --date="2/07/15 23:30:00" [root at boxen geo]# hwclock Sat 07 Feb 2015 11:30:03 PM CST -0.422288 seconds [root at 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 at boxen etc]# grep UTC * adjtime:UTC grep: extlinux.conf: No such file or directory Binary file localtime matches [root at 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 at 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 at boxen etc]# that is about it for this 'chemo brain' to come up with. -- peace out. in a world with out fences, who needs gates. CentOS GNU/Linux 6.6 tc,hago. g .
Jonathan Billings
2015-Feb-07 21:01 UTC
[CentOS] lost at 'repository' entry installing centos7
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. -- Jonathan Billings <billings at negate.org>
On 02/07/2015 06:31 AM, g wrote: <<>>> /etc/adjtime is still; > > 6.736246 1423375017 0.000000 > 1423375017 > UTCand that is where problem is/was. having looked at files that related to problem, i realized that there was one that i had not changed, but did note it had a recent time stamp. what changed it, i do not know, but it was time stamped during when i was playing with hwclock and system-config-date. being that it was showing UTC, i figured i had nothing to lose, so i changed to CST and rebooted. during bios, i broke to it, set bios clock to UTC again, rebooted. that did it. time in panel clock is now correct CST and UTC is also correct. now my 'chemo brain' can rest for a while. ;-) my thanks to all for responding. -- peace out. in a world with out fences, who needs gates. CentOS GNU/Linux 6.6 tc,hago. g .