Koozali.org: home of the SME Server

[SOLVED] Time is always eight hours off

Offline LANMonkey

  • *****
  • 350
  • +0/-0
    • Database Collection of Transcripts for the ICTY
[SOLVED] Time is always eight hours off
« on: January 23, 2009, 06:28:55 PM »
I have tried using 0.north-america.pool.ntp.org, pool.ntp.org and setting the time manually and it doesn't matter.  I go back to look what time it says and it is always eight hours off.  If it is January 12, 2009 9:26 AM, it will read January 12, 2009 1:26 AM.  It seems to have the time zone set correctly to America/Los Angeles.  I am in the Sacramento, CA area.

What is going on and how do I fix it?
« Last Edit: February 10, 2009, 10:34:24 PM by chris burnat »

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Time is always eight hours off
« Reply #1 on: January 24, 2009, 09:23:34 AM »
What is going on and how do I fix it?
Your best bet is the bugracker.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline LANMonkey

  • *****
  • 350
  • +0/-0
    • Database Collection of Transcripts for the ICTY
Re: Time is always eight hours off
« Reply #2 on: January 24, 2009, 05:21:15 PM »
The problem seems to have cleared up using a remote time server.  I have yet to see if the problem persists when set manually, but apparently it just took a little while for the time to set against a remote server.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Time is always eight hours off
« Reply #3 on: January 24, 2009, 06:58:59 PM »
The problem seems to have cleared up using a remote time server.  I have yet to see if the problem persists when set manually, but apparently it just took a little while for the time to set against a remote server.

if you setup your SME with a wrong date/time, time sync with remote server will fail if the difference is more than... well, I don't remember..

in this case, you should adjust your date/time manually an then change to sync to a time server.

Anyway, if you find something that does not work out-of-the-box, you should open a bug

Ciao
Stefano

Offline LANMonkey

  • *****
  • 350
  • +0/-0
    • Database Collection of Transcripts for the ICTY
Re: Time is always eight hours off
« Reply #4 on: February 06, 2009, 07:51:18 PM »
Very strange.  Now the problem is showing up in the BIOS settings.  I have the BIOS set up to start the machine up once a day at a certain time.  It was working and now that the SME settings are working, the BIOS clock is off by the same time.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Time is always eight hours off
« Reply #5 on: February 06, 2009, 08:12:55 PM »
Very strange.  Now the problem is showing up in the BIOS settings.  I have the BIOS set up to start the machine up once a day at a certain time.  It was working and now that the SME settings are working, the BIOS clock is off by the same time.
What timezone did you configure for your machine and how did you configure the system clock to run GMT perhaps?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline LANMonkey

  • *****
  • 350
  • +0/-0
    • Database Collection of Transcripts for the ICTY
Re: Time is always eight hours off
« Reply #6 on: February 06, 2009, 08:33:59 PM »
The BIOS clock does not have a time zone setting.  I have never seen a time zone setting in the BIOS clock setting.  The operating system clock has a correct time zone setting (PST for Central Northern California) and the time is correct too.  Again, I am using a network time server for the operating system.

I have tried setting the BIOS clock one more time.  Let's give it another 24 hours.

Still ... why would the BIOS clock change?

Offline mercyh

  • *
  • 824
  • +0/-0
    • http://mercyh.org
Re: Time is always eight hours off
« Reply #7 on: February 06, 2009, 09:45:15 PM »
SME is not installed on a Virtual Machine by chance?



Offline LANMonkey

  • *****
  • 350
  • +0/-0
    • Database Collection of Transcripts for the ICTY
Re: Time is always eight hours off
« Reply #8 on: February 06, 2009, 10:03:23 PM »
No, I certainly would have pointed that out.

 :lol: I still don't have a clue about virtual machines.  Sounds like an operating system for operating systems.  :???:

The hardware is an old OptiPlex from Dell.

Offline mercyh

  • *
  • 824
  • +0/-0
    • http://mercyh.org
Re: Time is always eight hours off
« Reply #9 on: February 06, 2009, 10:15:09 PM »
I thought it surely didn't pay to ask but the bios clock change sounded like something that can happen in that configuration.

The puzzling thing here is that it is always exactly 8hrs. This would indicate a time zone problem between the bios clock and the Software clock. As near as I can understant Linux does not ever write the software time back to the BIOS time. (I could be wrong on this) And it only checks the BIOS time at startup.

Windows on the other hand always writes the Software time back to the BIOS clock.

If the time was erratic and just lost time or gained time I would suspect a dying CMOS battery as you indicate this is an older system. The fact that the time is exactly 8 hours off indicates that this is not the problem.


Offline LANMonkey

  • *****
  • 350
  • +0/-0
    • Database Collection of Transcripts for the ICTY
Re: Time is always eight hours off
« Reply #10 on: February 06, 2009, 10:36:24 PM »
Yes, I was hoping it was a battery problem.  The thing that I worry about is a potential relationship between the BIOS and the software running on the computer which is bound to be way over my head.  I'm a little disturbed to hear that software can write back to the BIOS, although I'm comfortable that some BIOS's have anti-virus protection.  But, I haven't seen that for a while.

Offline mercyh

  • *
  • 824
  • +0/-0
    • http://mercyh.org
Re: Time is always eight hours off
« Reply #11 on: February 06, 2009, 10:58:52 PM »
I am sure you have read this: http://wiki.contribs.org/SME_Server:Documentation:Administration_Manual:Chapter13#Set_date_and_time

and I see you have done what it suggests (setting the time manually to the correct time and timezone and then turning on NTP.)

Can you set the time manually, log out of server-manager, Log back into server-manger and see that your change has held?

Is this an old install that has been working fine up until now or is it a new install that has never worked correctly?


Offline LANMonkey

  • *****
  • 350
  • +0/-0
    • Database Collection of Transcripts for the ICTY
Re: Time is always eight hours off
« Reply #12 on: February 07, 2009, 01:16:57 AM »
Yes, I've been in and out of the Server Manager many times only to see the time is correct now that I use a time server.

Come to think of it, it is not until I changed to use the time server that it would hold the correct time.  Ever since I installed it, the problem was the same.  The installation is at least a month old.

Offline LANMonkey

  • *****
  • 350
  • +0/-0
    • Database Collection of Transcripts for the ICTY
Re: Time is always eight hours off
« Reply #13 on: February 07, 2009, 05:41:02 PM »
....

I have tried setting the BIOS clock one more time.  Let's give it another 24 hours.

Still ... why would the BIOS clock change?

It's off again.  There is no question about it.  The software is changing the BIOS setting.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Time is always eight hours off
« Reply #14 on: February 07, 2009, 06:19:40 PM »
It's off again.  There is no question about it.  The software is changing the BIOS setting.
What is the time now on your server and what should it be? In other words what is the difference? Is it constant?
Code: [Select]
date
Code: [Select]
hwclock
What is the output of
Code: [Select]
ls -la /etc/localtime
Did you perhaps say that your system clock uses UTC during installation and is your localtime perhaps differing 8 hours from UTC (http://en.wikipedia.org/wiki/List_of_time_zones)?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)