Yum And Yumex Change System Time

Home » CentOS » Yum And Yumex Change System Time
CentOS 8 Comments

greetings,

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.

tia.

8 thoughts on - Yum And Yumex Change System Time

  • 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?

  • Richard, thank you for your response.

    < <>>

    u.s.a. ‘central time zone’ – currently on ‘daylight savings time’.

    [geo@boxen ~]$ date
    Tue Jun 23 14:54:42 CDT 2015

    [geo@boxen ~]$ sudo hwclock –show
    [sudo] password for geo:
    Tue 23 Jun 2015 02:55:40 PM CDT -0.899861 seconds

    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.

    see above answer.

    2015-06-18 20:50

    this file was copied several months ago so time stamp shows file has been updated.

    [geo@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

    /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@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

    /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@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’.

  • < <>>

    cussing and using “System Settings > Date & Time” to make change after i enter root user password. :-\

    thanks again for you response.

  • < <>>

    if there were no strange problems, i would have no problems. ;-)

    i would think not, but something is happening.

    time change happens even when there is no tzdata package.

    -0500 = utc -0600 daylight savings time = utc -0500

    thank you for responding.

  • 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

  • < <>>

    it was;

    ZONE=”Etc/UTC”

    it is now.

    ZONE=”America/Chicago”

    done.

    if by ‘time tool’ you mean “System Settings > Date & Time”, there is no “System clock uses UTC”.

    i ran ‘yumex’ to pull in some progs, ‘tzdata-2015e-1.el6.noarch.rpm’
    was updated 2015-0621, so i could not pull it.

    closed ‘yumex’ no change in system time in panel. rebooted, still OK.

    1 problem left. :-(

    when i started kde after rebooting, i ran the ‘hwclock’ and ‘zdump’
    checks, all compared to before. but…

    time stamp showing in konqueror is CST, not CDT.

    when i mouse over clock in panel, ‘Chicago’ and ‘UTC’ times show correctly, ie,

    Chicago 21:30, Wednesday 24 June 2015
    UTC 02:30, Thursday 25 June 2015

    ‘Chicago’ is CDT, -0500 hrs, yet, knoqueror stamps CST.

    what would be causing konqueror to be time stamping CST instead of CDT?

    how to correct?

LEAVE A COMMENT