1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Server Time advances when I reboot

Discussion in 'Plesk for Linux - 8.x and Older' started by Pagemakers, Mar 29, 2006.

  1. Pagemakers

    Pagemakers Silver Pleskian

    31
    80%
    Joined:
    Dec 19, 2007
    Messages:
    664
    Likes Received:
    7
    I am in the UK - currently GMT +1.

    If I set the correct date and time on the server time page in the CP and set time zone to GMT+1 Europe/London and then reboot the server the time changes to an hour more.

    I've tried everything. What am I doing wrong?
     
  2. Pagemakers

    Pagemakers Silver Pleskian

    31
    80%
    Joined:
    Dec 19, 2007
    Messages:
    664
    Likes Received:
    7
  3. rank1st

    rank1st Guest

    0
     
    Your best bet is to go to a shell prompt and set it there:

    First get the correct timezone set for local time:
    ln -sf ../usr/share/zoneinfo/your/zone /etc/localtime

    set date & time in linux
    date mmddhhmm

    set your hardware clock
    /sbin/hwclock --systohc

    This should do it. You need to check if you need UTC time or not. Just go and google "linux date", its the first site in the results.
     
  4. Pagemakers

    Pagemakers Silver Pleskian

    31
    80%
    Joined:
    Dec 19, 2007
    Messages:
    664
    Likes Received:
    7
    In an ssh session if I type date I get: Wed Mar 29 17:18:24 BST 2006

    If I type hwclosk I get Wed 29 Mar 2006 17:18:48 BST

    So that is correct.

    However if I reboot the hour goes to 18:
     
  5. rvdmeer

    rvdmeer Guest

    0
     
    Could it be the GMT not set correctly in the CMOS?
     
  6. Pagemakers

    Pagemakers Silver Pleskian

    31
    80%
    Joined:
    Dec 19, 2007
    Messages:
    664
    Likes Received:
    7
    It's both of our servers.

    Everything was fine and last weekend the UK changed from GMT to GMT+1, then all the problems started....
     
  7. Pagemakers

    Pagemakers Silver Pleskian

    31
    80%
    Joined:
    Dec 19, 2007
    Messages:
    664
    Likes Received:
    7
    Can somebody try this as it is doing the same on all our servers and Plesk says it is not a bug.

    On the server System/System Date and Time page set:

    Time Zone: Europe/London
    Set the time (here in the UK we are GMT +1 at the moment)
    Check Synchronize system time and add: ntp2.mcc.ac.uk

    Now reboot your server. When it comes back up the time on our server has advances by one hour.
     
  8. rank1st

    rank1st Guest

    0
     
    Hi Pagemakers,

    Executed your instructions our development box in house. The only difference in our config is that we are PSA 7.5.4/FC3 where I notice your signature said Plesk 8.

    We did not experience the same problem. Did you folks in the UK recently change any sort of daylight savings time?

    The only think I can think of is that possibly the bios on the server itself is out of date and does not recognize the time change. Is it by chance set to UTC?
     
  9. Pagemakers

    Pagemakers Silver Pleskian

    31
    80%
    Joined:
    Dec 19, 2007
    Messages:
    664
    Likes Received:
    7
    We changed to BST last week.

    How can I tell the bios time?
     
  10. rank1st

    rank1st Guest

    0
     
    /sbin/hwclock

    Should show you the hardware clock.

    By changing time I meant dropping a switch between daylight savings time and standard time after a number of years of having it. Some parts of AU recently did away with the concept and went to standard time year round. There was some talk of doing away with it in the US as well. My thoughts on that are that it would cause at least as much work as Y2K though.

    As far as patches for time related parts of the OS that is really outside of the realm of Plesk. Most of the time/date patches for that would have been OS updates, I take it you are updating the OS with up2date or yum?
     
  11. Pagemakers

    Pagemakers Silver Pleskian

    31
    80%
    Joined:
    Dec 19, 2007
    Messages:
    664
    Likes Received:
    7
    Should the HW clock be set to GMT?

    In Plesk our time is set at UK local. Zone is set to GMT + 1 and this is also when the HW clock is currently set to. I wonder if that is why the time advances one hour on re-boot?
     
  12. rank1st

    rank1st Guest

    0
     
    If that is the setting that produces the time setting you like, mho would be go for it. However, keep in mind that this could get "fixed" by some patch in the future and then your time would be messed up. Best to keep this on a list of things to keep an eye on.
     
Loading...