LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Wrong Time Displayed (https://www.linuxquestions.org/questions/linux-desktop-74/wrong-time-displayed-4175493436/)

opus-outlaw 02-02-2014 08:55 AM

Wrong Time Displayed
 
Just finished installing SolydK-64. (based on Debian testing)
The displayed time is incorrect. (5 hrs. early)

The BIOS date and time are correct.

I used sudo dpkg-reconfigure tzdata, to reset time zone.

sandy@opus:~/Desktop$ date
Sat Feb 1 14:32:36 EST 2014
sandy@opus:~/Desktop$

I live in Montreal, Canada the local time when the date command was executed was: 19:32 ....


Thank you in advance for any advice / suggestions on how to correct this problem.

Tom

Ser Olmy 02-02-2014 09:15 AM

Suggestion #1 would be that perhaps your Time Zone isn't configured correctly, but the "EST" seems to indicate that it is.

Suggestion #2 would be that your system is perhaps configured to interpret the hardware clock as being set to UTC. Not sure where the parameter controlling this can be found in Debian.

Suggestion #3 would be to check the kernel RTC_SYSTOHC and RTC_HCTOSYS configuration settings, as they only work if your hardware clock is set to UTC.

goumba 02-02-2014 09:46 AM

Quote:

Originally Posted by Ser Olmy (Post 5109674)
Suggestion #1 would be that perhaps your Time Zone isn't configured correctly, but the "EST" seems to indicate that it is.

Suggestion #2 would be that your system is perhaps configured to interpret the hardware clock as being set to UTC. Not sure where the parameter controlling this can be found in Debian.

Suggestion #3 would be to check the kernel RTC_SYSTOHC and RTC_HCTOSYS configuration settings, as they only work if your hardware clock is set to UTC.

For #2:

In /etc/adjtime, you'll find the line "UTC" (should be by itself on a line). Change this to "LOCAL" and you should be set.

John VV 02-02-2014 01:36 PM

Are you dual booting with MS windows ???

if so your options are little to NONE

windows MUST have the clock on the Motherbord set to YOUR local time zone

linux likes to have it set to UT ( Greenwich mean time )

but there is an overide to use the MICROSOFT setting
-- there is no such overide on windows

so you HAVE to use the windows setting , if you are dual booting .

Ser Olmy 02-02-2014 01:48 PM

Quote:

Originally Posted by John VV (Post 5109807)
windows MUST have the clock on the Motherbord set to YOUR local time zone

No, if you set the registry dword value "RealTimeIsUniversal" to "1", Windows will treat the hardware clock as providing UTC time. This registry value can be found (or created if it isn't already there) under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation.
Quote:

Originally Posted by John VV (Post 5109807)
linux likes to have it set to UT ( Greenwich mean time )

Some kernel settings do indeed assume the hardware clock is providing UTC (Coordinated Universal Time, which unlike GMT is not a time zone), but one can easily override this.

opus-outlaw 02-02-2014 05:45 PM

First things first let me thank each of you for responses.

Next up I must apologize, I was mistaken and now believe my hardware clock (BIOS) is "defeactive".
(It seems to "lose" time rather quickley)

Found an interesting post here on how to use ntpdate to solve this problem.

Tom


All times are GMT -5. The time now is 08:02 PM.