You are not logged in.

#1 2011-05-30 19:18:31

arch_cy
Member
From: ~/.xinitrc
Registered: 2011-03-04
Posts: 39

[SOLVED]Arch's Time is 3 hours off

Hello I read this issue https://bbs.archlinux.org/viewtopic.php?id=78867
But my problem didnt solved. I use Europe/Athens time zone but the timer is 3 hours off how can i fix it?

Last edited by arch_cy (2011-05-31 07:52:51)


Knowledge ⇛ Linux: Good ┃ Programming: Yes (Java, C++/C, Pacal, Visual Basic, Python, HTML)

Desktop: HP Compaq (1GB RAM, Intel Core 2 Duo, GeForce 7300E, D-Link DGE-530T Gigabit) Arch Linux 64bit with XFCE
Netbook: HP Mini 110-3160ev (Intel Atom, RaLink RT3090 Wireless) MeeGov1.2 (32bit)

Offline

#2 2011-05-30 19:19:52

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED]Arch's Time is 3 hours off


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2011-05-30 19:51:32

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]Arch's Time is 3 hours off

Please post the output of 'hwclock --debug'.

Offline

#4 2011-05-30 20:19:59

arch_cy
Member
From: ~/.xinitrc
Registered: 2011-03-04
Posts: 39

Re: [SOLVED]Arch's Time is 3 hours off

hwclock from util-linux 2.19.1
Using /dev interface to clock.
Assuming hardware clock is kept in local time.
Waiting for clock tick...
...got clock tick
Time read from Hardware Clock: 2011/05/30 23:18:43
Hw clock time : 2011/05/30 23:18:43 = 1306786723 seconds since 1969
Mon 30 May 2011 11:18:43 PM EEST  -0.989349 seconds

Knowledge ⇛ Linux: Good ┃ Programming: Yes (Java, C++/C, Pacal, Visual Basic, Python, HTML)

Desktop: HP Compaq (1GB RAM, Intel Core 2 Duo, GeForce 7300E, D-Link DGE-530T Gigabit) Arch Linux 64bit with XFCE
Netbook: HP Mini 110-3160ev (Intel Atom, RaLink RT3090 Wireless) MeeGov1.2 (32bit)

Offline

#5 2011-05-30 20:23:52

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]Arch's Time is 3 hours off

Set your hardware clock to UTC.

Offline

#6 2011-05-30 20:25:57

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

Re: [SOLVED]Arch's Time is 3 hours off

And, as a point of reference, it seems that the local time there should be 23:24

edit: typo

Last edited by ewaller (2011-05-30 20:29:48)


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 2011-05-30 20:28:31

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

Re: [SOLVED]Arch's Time is 3 hours off

Karol hit it on the head, your hardware clock is set to local time -- UTC is the better choice.

Do you have your configuration set to update the hardware clock at shut down?
Have you considered synchronizing to an NTP server?

Edit: Oh, and are you dual booting Windows?

Last edited by ewaller (2011-05-30 20:29:12)


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

#8 2011-05-30 20:30:44

arch_cy
Member
From: ~/.xinitrc
Registered: 2011-03-04
Posts: 39

Re: [SOLVED]Arch's Time is 3 hours off

karol wrote:

Set your hardware clock to UTC.

in rc.conf the hardwareclock was empty and I change into UTC then I saved it, logout-login but nothing, I have to restart?


Knowledge ⇛ Linux: Good ┃ Programming: Yes (Java, C++/C, Pacal, Visual Basic, Python, HTML)

Desktop: HP Compaq (1GB RAM, Intel Core 2 Duo, GeForce 7300E, D-Link DGE-530T Gigabit) Arch Linux 64bit with XFCE
Netbook: HP Mini 110-3160ev (Intel Atom, RaLink RT3090 Wireless) MeeGov1.2 (32bit)

Offline

#9 2011-05-30 20:31:39

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]Arch's Time is 3 hours off

arch_cy wrote:
karol wrote:

Set your hardware clock to UTC.

in rc.conf the hardwareclock was empty and I change into UTC then I saved it, logout-login but nothing, I have to restart?

Yes, you need to restart.

Offline

#10 2011-05-30 20:38:13

arch_cy
Member
From: ~/.xinitrc
Registered: 2011-03-04
Posts: 39

Re: [SOLVED]Arch's Time is 3 hours off

ewaller wrote:

Karol hit it on the head, your hardware clock is set to local time -- UTC is the better choice.

1>>Do you have your configuration set to update the hardware clock at shut down?
2>> Have you considered synchronizing to an NTP server?

Edit: Oh, and are you dual booting Windows?

1) No.
2) I can understand what you mean man.
3) Yes is dual boot with Windows using 20GB of my hardrive for photoshop only works -.- i hate that photoshop isnt opensource

Also after the restart the same problem the time is 02:38 and not 11:38

Last edited by arch_cy (2011-05-30 20:40:32)


Knowledge ⇛ Linux: Good ┃ Programming: Yes (Java, C++/C, Pacal, Visual Basic, Python, HTML)

Desktop: HP Compaq (1GB RAM, Intel Core 2 Duo, GeForce 7300E, D-Link DGE-530T Gigabit) Arch Linux 64bit with XFCE
Netbook: HP Mini 110-3160ev (Intel Atom, RaLink RT3090 Wireless) MeeGov1.2 (32bit)

Offline

#11 2011-05-30 20:42:41

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]Arch's Time is 3 hours off

arch_cy wrote:
ewaller wrote:

Karol hit it on the head, your hardware clock is set to local time -- UTC is the better choice.

1>>Do you have your configuration set to update the hardware clock at shut down?
2>> Have you considered synchronizing to an NTP server?

Edit: Oh, and are you dual booting Windows?

1) No.
2) I can understand what you mean man.
3) Yes is dual boot with Windows using 20GB of my hardrive for photoshop only works -.- i hate that photoshop isnt opensource or paid for linux installation without wine and the problems.

Also after the restart the same problem the time is 02:38 and not 11:38

You mean 'hwclock --debug' hasn't changed and still tells you are using local time?
What timezone do you have set in rc.conf?
How exactly did you set the hardware clock? Just the rc.conf stuff?
Are you using UTC on your Windows installation?

You can read bout NTP: https://wiki.archlinux.org/index.php/NTP

Last edited by karol (2011-05-30 20:43:52)

Offline

#12 2011-05-30 20:46:32

arch_cy
Member
From: ~/.xinitrc
Registered: 2011-03-04
Posts: 39

Re: [SOLVED]Arch's Time is 3 hours off

Yes the new log:

hwclock from util-linux 2.19.1
Using /dev interface to clock.
Assuming hardware clock is kept in local time.
Waiting for clock tick...
...got clock tick
Time read from Hardware Clock: 2011/05/30 23:43:47
Hw clock time : 2011/05/30 23:43:47 = 1306788227 seconds since 1969
Mon 30 May 2011 11:43:47 PM EEST  -0.847525 seconds

My timezone is "Europe/Athens"
On installation i just choose my Location (basic i am from cyprus but we have the same zone with Greece/Athens) so i choose Europe/Athens.
I dont know my Windows 7 is just for photoshop anything else i freeze it with deepfreeze in case to be always clean from virus... all the stuf is done on my linux..

Last edited by arch_cy (2011-05-30 20:47:08)


Knowledge ⇛ Linux: Good ┃ Programming: Yes (Java, C++/C, Pacal, Visual Basic, Python, HTML)

Desktop: HP Compaq (1GB RAM, Intel Core 2 Duo, GeForce 7300E, D-Link DGE-530T Gigabit) Arch Linux 64bit with XFCE
Netbook: HP Mini 110-3160ev (Intel Atom, RaLink RT3090 Wireless) MeeGov1.2 (32bit)

Offline

#13 2011-05-30 20:57:06

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]Arch's Time is 3 hours off

Offline

#14 2011-05-30 21:06:04

arch_cy
Member
From: ~/.xinitrc
Registered: 2011-03-04
Posts: 39

Re: [SOLVED]Arch's Time is 3 hours off

Ok man listen i have to go to bed. I run this command "# hwclock --set --date "MM/DD/YYYY hh:mm:ss"" with the correct time may i need a restart i will do it tomorrow. So thank you very match and i am going to solve it tomorrow (with comunity help of course smile).

Last edited by arch_cy (2011-05-30 21:06:44)


Knowledge ⇛ Linux: Good ┃ Programming: Yes (Java, C++/C, Pacal, Visual Basic, Python, HTML)

Desktop: HP Compaq (1GB RAM, Intel Core 2 Duo, GeForce 7300E, D-Link DGE-530T Gigabit) Arch Linux 64bit with XFCE
Netbook: HP Mini 110-3160ev (Intel Atom, RaLink RT3090 Wireless) MeeGov1.2 (32bit)

Offline

#15 2011-05-30 21:14:09

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

Re: [SOLVED]Arch's Time is 3 hours off

Well, all of my systems are set to UTC.  When I run windows, I set the time zone to Zulu so I see a  -8 (or -7) hour delta when running windows.

I am loath to suggest this, but it might just be easiest to set your Arch install to use local time.  This way, you don't need to fight with the folk in Redmond.  just update the hardware clock variable in /etc/rc.conf.

Actually, I hate that idea.  To do it correctly, leave the configuration for UTC, set the system time using the date command, set the hardware clock using:
sudo /sbin/hwclock --systohc  --utc
Consider installing and using ntpdc
Fix Windows to use UTC (requires adventures with Resedit)


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

#16 2011-05-30 21:15:11

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]Arch's Time is 3 hours off

arch_cy wrote:

Ok man listen i have to go to bed. I run this command "# hwclock --set --date "MM/DD/YYYY hh:mm:ss"" with the correct time may i need a restart i will do it tomorrow. So thank you very match and i am going to solve it tomorrow (with comunity help of course smile).

Sure thing, I'm in no hurry :-)

I don't think you need to restart after using this command to be able to see the effect. Just doublecheck if you set the date correctly: it's in the "US standard", months come before days so you can easily set it to 6th January instead of 1st June. This will cause a nasty error https://bbs.archlinux.org/viewtopic.php?id=80931

Offline

#17 2011-05-30 22:04:09

vladthedog
Member
Registered: 2010-12-03
Posts: 45

Re: [SOLVED]Arch's Time is 3 hours off

ewaller wrote:

Well, all of my systems are set to UTC.  When I run windows, I set the time zone to Zulu so I see a  -8 (or -7) hour delta when running windows.

I am loath to suggest this, but it might just be easiest to set your Arch install to use local time.  This way, you don't need to fight with the folk in Redmond.  just update the hardware clock variable in /etc/rc.conf.

Actually, I hate that idea.  To do it correctly, leave the configuration for UTC, set the system time using the date command, set the hardware clock using:
sudo /sbin/hwclock --systohc  --utc
Consider installing and using ntpdc
Fix Windows to use UTC (requires adventures with Resedit)

Either save the following as a .reg file and run it, or just go into regedit and add it.  I use it on both my laptop and desktop without problems.


Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation] “RealTimeIsUniversal”=dword:00000001

EDIT: Also, even with everything set "correctly" I've been having issues with HWCLOCK and instead have switched to OPENTDPD to control my system clocks.  It's probably something I'm just not setting correctly for hwclock, but im used to using ntpd from the past.

Last edited by vladthedog (2011-05-30 22:06:16)

Offline

#18 2011-05-31 04:29:11

skodabenz
Banned
From: Tamilnadu, India
Registered: 2010-04-11
Posts: 382

Re: [SOLVED]Arch's Time is 3 hours off

For all Windows dual-boot users try https://bbs.archlinux.org/viewtopic.php … 82#p940782 . I have been using Windows with UTC-hwclok perfectly with this.


My new forum user/nick name is "the.ridikulus.rat" .

Offline

#19 2011-05-31 07:52:31

arch_cy
Member
From: ~/.xinitrc
Registered: 2011-03-04
Posts: 39

Re: [SOLVED]Arch's Time is 3 hours off

@skodabenz: your links help me to solve the problem. Here is the steps:

first of all I change Windows time to UTC with this code:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
     "RealTimeIsUniversal"=dword:00000001

I save it with "name.reg" and then I run it.

After switch to Arch:
You have to install the NTP by: 

pacman -S ntp

Edit your rc.conf file and add to deamons the ntp: DAEMONS(...ntpd..) and also in rc.conf change hardwareclock to "local" => HARDWARECLOCK="local"
Restart and done! smile

Thank you all guys for any help smile


Knowledge ⇛ Linux: Good ┃ Programming: Yes (Java, C++/C, Pacal, Visual Basic, Python, HTML)

Desktop: HP Compaq (1GB RAM, Intel Core 2 Duo, GeForce 7300E, D-Link DGE-530T Gigabit) Arch Linux 64bit with XFCE
Netbook: HP Mini 110-3160ev (Intel Atom, RaLink RT3090 Wireless) MeeGov1.2 (32bit)

Offline

Board footer

Powered by FluxBB