> Date: Tuesday, June 23, 2015 03:48:36 PM -0400 > From: Jonathan Billings <billings at negate.org> > > On Tue, Jun 23, 2015 at 01:56:13PM -0500, g wrote: >> each and every time i run yum or yumex, system time is advanced >> by 5 hours. >> >> this has gone on thru several updates, maybe even upgrades. >> >> centos = 6.6 current >> yum = 3.2.29 >> yumex = 3.0.5 >> >> for awhile, i did not mind resetting clock when i noticed it off. >> >> now, it is a pita because when i forget, emails and what ever else >> i am doing get wrong time stamps. >> >> i have searched for problem/solution, but none found. or i missed >> it reading search page. >> >> most appreciative if anyone knows of a solution. > > Hmmm, that's a really strange problem. > > yum really doesn't have anything to do with your system clock. It > just installs, updates and removes packages. I've never used > 'yumex' but i assume it just runs yum behind the scenes. > > The only thing I can think of is that your system is installing a > tzdata package and failing, and somehow you're replacing the time > zone with the original each time you fix it. Since your date is > listed as -0500, it would seem likely that it is related.I agree, so my questions are: - what is your TZ? - what does "[/bin/]date" show? - what does your hardware clock: "/sbin/hwclock --show" report? [need to be root to use that command] - is your /etc/localtime file a standalone file or a symlink to /usr/share/zoneinfo/... ? - if a symlink, to what file? - what is the timestamp on the localtime (or what it's symlinked to) file? - what does "zdump -v /etc/localtime" return ? i.e., is it for the correct TZ?
On Tue, Jun 23, 2015 at 07:51:39PM +0000, Richard wrote:> I agree, so my questions are: > > - what is your TZ? > > - what does "[/bin/]date" show? > > - what does your hardware clock: "/sbin/hwclock --show" report? > [need to be root to use that command] > > - is your /etc/localtime file a standalone file or a symlink > to /usr/share/zoneinfo/... ? > > - if a symlink, to what file? > > - what is the timestamp on the localtime (or what it's > symlinked to) file? > > - what does "zdump -v /etc/localtime" return ? i.e., is it for > the correct TZ?To add to this list of questions: - What are you doing to fix the clock each time you discover it is incorrect? -- Jonathan Billings <billings at negate.org>
Richard, thank you for your response. On 06/23/2015 02:51 PM, Richard wrote: <<>>> I agree, so my questions are: > > - what is your TZ?u.s.a. 'central time zone' - currently on 'daylight savings time'.> - what does "[/bin/]date" show?[geo at boxen ~]$ date Tue Jun 23 14:54:42 CDT 2015> - what does your hardware clock: "/sbin/hwclock --show" report? > [need to be root to use that command][geo at boxen ~]$ sudo hwclock --show [sudo] password for geo: Tue 23 Jun 2015 02:55:40 PM CDT -0.899861 seconds> - is your /etc/localtime file a standalone file or a symlink > to /usr/share/zoneinfo/... ?currently it is a copy of file from /usr/share/zoneinfo/ on advice from a post to this list when i had problem getting correct time to show in clock in panel.> - if a symlink, to what file?see above answer.> - what is the timestamp on the localtime (or what it's > symlinked to) file?2015-06-18 20:50 this file was copied several months ago so time stamp shows file has been updated.> - what does "zdump -v /etc/localtime" return ? i.e., is it for > the correct TZ?[geo at boxen ~]$ zdump -v /etc/localtime /etc/localtime -9223372036854775808 = NULL /etc/localtime -9223372036854689408 = NULL /etc/localtime Sun Nov 18 17:59:59 1883 UTC = Sun Nov 18 12:09:23 1883 LMT isdst=0 gmtoff=-21036 <one hell of a long list snipped> /etc/localtime Sun Nov 1 06:59:59 2499 UTC = Sun Nov 1 01:59:59 2499 CDT isdst=1 gmtoff=-18000 /etc/localtime Sun Nov 1 07:00:00 2499 UTC = Sun Nov 1 01:00:00 2499 CST isdst=0 gmtoff=-21600 /etc/localtime 9223372036854689407 = NULL /etc/localtime 9223372036854775807 = NULL [geo at boxen ~]$ zdump -v CDT /etc/localtime CDT -9223372036854775808 = NULL CDT -9223372036854689408 = NULL CDT 9223372036854689407 = NULL CDT 9223372036854775807 = NULL /etc/localtime -9223372036854775808 = NULL /etc/localtime -9223372036854689408 = NULL /etc/localtime Sun Nov 18 17:59:59 1883 UTC = Sun Nov 18 12:09:23 1883 LMT isdst=0 gmtoff=-21036 /etc/localtime Sun Nov 18 18:00:00 1883 UTC = Sun Nov 18 12:00:00 1883 CST isdst=0 gmtoff=-21600 /etc/localtime Sun Mar 31 07:59:59 1918 UTC = Sun Mar 31 01:59:59 1918 CST isdst=0 gmtoff=-21600 <similar hell of a long list like above> /etc/localtime Sun Nov 1 06:59:59 2499 UTC = Sun Nov 1 01:59:59 2499 CDT isdst=1 gmtoff=-18000 /etc/localtime Sun Nov 1 07:00:00 2499 UTC = Sun Nov 1 01:00:00 2499 CST isdst=0 gmtoff=-21600 /etc/localtime 9223372036854689407 = NULL /etc/localtime 9223372036854775807 = NULL [geo at boxen ~]$ zdump -v CDT CDT -9223372036854775808 = NULL CDT -9223372036854689408 = NULL CDT 9223372036854689407 = NULL CDT 9223372036854775807 = NULL so, yes. i am in 'central time zone' observing 'daylight savings time'. -- peace out. -+- If Bill Gates got a dime for every time Windows crashes... ...oh, wait. He does. THAT explains it! -+- in a world with out fences, who needs gates. -+- CentOS GNU/Linux 6.6 tc,hago. g .
On 06/23/2015 02:53 PM, Jonathan Billings wrote: <<>>> To add to this list of questions: > > - What are you doing to fix the clock each time you discover it > is incorrect?cussing and using "System Settings > Date & Time" to make change after i enter root user password. :-\ thanks again for you response. -- peace out. -+- If Bill Gates got a dime for every time Windows crashes... ...oh, wait. He does. THAT explains it! -+- in a world with out fences, who needs gates. -+- CentOS GNU/Linux 6.6 tc,hago. g .
On 06/23/2015 04:47 PM, g wrote:> > Richard, thank you for your response. > > > On 06/23/2015 02:51 PM, Richard wrote: > <<>> > >> I agree, so my questions are: >> >> - what is your TZ? > > u.s.a. 'central time zone' - currently on 'daylight savings time'. > >> - what does "[/bin/]date" show? > > [geo at boxen ~]$ date > Tue Jun 23 14:54:42 CDT 2015 > >> - what does your hardware clock: "/sbin/hwclock --show" report? >> [need to be root to use that command] > > [geo at boxen ~]$ sudo hwclock --show > [sudo] password for geo: > Tue 23 Jun 2015 02:55:40 PM CDT -0.899861 seconds > >> - is your /etc/localtime file a standalone file or a symlink >> to /usr/share/zoneinfo/... ? > > currently it is a copy of file from /usr/share/zoneinfo/ on advice > from a post to this list when i had problem getting correct time to > show in clock in panel. > >> - if a symlink, to what file? > > see above answer. > >> - what is the timestamp on the localtime (or what it's >> symlinked to) file? > > 2015-06-18 20:50 > > this file was copied several months ago so time stamp shows file has > been updated. > >> - what does "zdump -v /etc/localtime" return ? i.e., is it for >> the correct TZ? > > [geo at boxen ~]$ zdump -v /etc/localtime > /etc/localtime -9223372036854775808 = NULL > /etc/localtime -9223372036854689408 = NULL > /etc/localtime Sun Nov 18 17:59:59 1883 UTC = Sun Nov 18 12:09:23 > 1883 LMT isdst=0 gmtoff=-21036 > > <one hell of a long list snipped> > > /etc/localtime Sun Nov 1 06:59:59 2499 UTC = Sun Nov 1 01:59:59 > 2499 CDT isdst=1 gmtoff=-18000 > /etc/localtime Sun Nov 1 07:00:00 2499 UTC = Sun Nov 1 01:00:00 > 2499 CST isdst=0 gmtoff=-21600 > /etc/localtime 9223372036854689407 = NULL > /etc/localtime 9223372036854775807 = NULL > > [geo at boxen ~]$ zdump -v CDT /etc/localtime > CDT -9223372036854775808 = NULL > CDT -9223372036854689408 = NULL > CDT 9223372036854689407 = NULL > CDT 9223372036854775807 = NULL > /etc/localtime -9223372036854775808 = NULL > /etc/localtime -9223372036854689408 = NULL > /etc/localtime Sun Nov 18 17:59:59 1883 UTC = Sun Nov 18 12:09:23 > 1883 LMT isdst=0 gmtoff=-21036 > /etc/localtime Sun Nov 18 18:00:00 1883 UTC = Sun Nov 18 12:00:00 > 1883 CST isdst=0 gmtoff=-21600 > /etc/localtime Sun Mar 31 07:59:59 1918 UTC = Sun Mar 31 01:59:59 > 1918 CST isdst=0 gmtoff=-21600 > > <similar hell of a long list like above> > > /etc/localtime Sun Nov 1 06:59:59 2499 UTC = Sun Nov 1 01:59:59 > 2499 CDT isdst=1 gmtoff=-18000 > /etc/localtime Sun Nov 1 07:00:00 2499 UTC = Sun Nov 1 01:00:00 > 2499 CST isdst=0 gmtoff=-21600 > /etc/localtime 9223372036854689407 = NULL > /etc/localtime 9223372036854775807 = NULL > > [geo at boxen ~]$ zdump -v CDT > CDT -9223372036854775808 = NULL > CDT -9223372036854689408 = NULL > CDT 9223372036854689407 = NULL > CDT 9223372036854775807 = NULL > > so, yes. i am in 'central time zone' observing 'daylight savings time'. > >Edit the file: /etc/sysconfig/clock make sure to set: ZONE="America/Chicago" then copy /usr/share/zoneinfo/America/Chicago to /etc/localtime Run the time tool and make sure that "System clock uses UTC" is NOT checked -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: OpenPGP digital signature URL: <http://lists.centos.org/pipermail/centos/attachments/20150623/19f07207/attachment-0001.sig>