You are not logged in.

#1 2012-11-24 10:01:40

eruditorum
Member
Registered: 2012-11-12
Posts: 130

[SOLVED] System time is +4hrs from hardware clock

Hello again.

Now I can't set up my system`s time properly. (Set system time from hardware clock)
Timezone is GMT+4 (Europe/Samara) and hardware clock (RTC) is set to proper time so does UTC.
But system`s time itself is 4 hours in the future from HW clock!

# hwclock --hctosys --utc

does nothing.

# timedatectl set-local-rtc 1

or

# timedatectl set-time "$mytime"

both do nothing and output following error:

Failed to issue method call: The name org.freedesktop.PolicyKit1 was not provided by any .service files

Also, removing /etc/adjtime does nothing!

How can I fix it?

Last edited by eruditorum (2012-11-25 10:52:14)

Offline

#2 2012-11-24 15:58:41

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: [SOLVED] System time is +4hrs from hardware clock

Have you followed the Time Zone and Hardwareclock parts of the beginner's guide?
https://wiki.archlinux.org/index.php/Be … #Time_zone
"Note: Using UTC for the hardware clock does not mean that software will display time in UTC."
Does "# date" show the correct time in the console?

Offline

#3 2012-11-24 16:08:43

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED] System time is +4hrs from hardware clock


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#4 2012-11-24 17:47:49

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: [SOLVED] System time is +4hrs from hardware clock

Can you please post the output of hwclock --debug


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2012-11-25 01:42:18

eruditorum
Member
Registered: 2012-11-12
Posts: 130

Re: [SOLVED] System time is +4hrs from hardware clock

ewaller,

hwclock from util-linux 2.22.1
Using /dev interface to clock.
Last drift adjustment done at 1353744432 seconds after 1969
Last calibration done at 1353744432 seconds after 1969
Hardware clock is on UTC time
Assuming hardware clock is kept in UTC time.
Waiting for clock tick...
...got clock tick
Time read from Hardware Clock: 2012/11/25 05:40:17
Hw clock time : 2012/11/25 05:40:17 = 1353822017 seconds since 1969
Sun 25 Nov 2012 09:40:17 AM SAMT  -0.907738 seconds

Last edited by eruditorum (2012-11-25 04:35:10)

Offline

#6 2012-11-25 05:04:33

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: [SOLVED] System time is +4hrs from hardware clock

You posted at 17:42 PST.  That would be 01:42 UTC.  Your hardware clock is four hours ahead of that, and is therefore clearly wrong.  It looks like it is set to your local time.  Then, your system applies the + four hour delta from UTC to SAMT and *poof* your clock is off by four hours.

Set the date and time with the date command, then use hwclock -w command to set the hardware (BIOS) clock.

Do you dual boot any other archaic operating systems that use local time ? Cough*windows*cough.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#7 2012-11-25 10:50:42

eruditorum
Member
Registered: 2012-11-12
Posts: 130

Re: [SOLVED] System time is +4hrs from hardware clock

ewaller wrote:

Set the date and time with the date command, then use hwclock -w command to set the hardware (BIOS) clock.

Thank you man, this worked!

Last edited by eruditorum (2012-11-25 10:51:32)

Offline

Board footer

Powered by FluxBB