You are not logged in.

#1 2008-07-08 13:23:45

RAH
Member
Registered: 2008-06-20
Posts: 205

[SOLVED] Time Issue

Hello,

For some reason my Arch Linux installation appears to be providing various web services with incorrect times - for example GMail thinks it is 6:16AM now yet it says that an email I just sent was sent 8 hours ago.  My local time is 2:23PM.  I don't have this issue in Windows.

Thanks.

Last edited by RAH (2008-08-02 10:49:02)

Offline

#2 2008-07-08 15:24:10

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

Re: [SOLVED] Time Issue

RAH wrote:

Hello,

For some reason my Arch Linux installation appears to be providing various web services with incorrect times - for example GMail thinks it is 6:16AM now yet it says that an email I just sent was sent 8 hours ago.  My local time is 2:23PM.  I don't have this issue in Windows.

Thanks.

What have you set your HardwareClock as in rc.conf ? UTC or localtime?


I had the same problem that my time was screwed after installing Arch. I had to manually set the date and time and then update the hardware clock.

You can set the date using the

date

command and then use

hwclock

to set it to the hardware clock. Use the man pages for both to see the syntax


Forum Rules

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

Offline

#3 2008-07-08 15:26:39

RAH
Member
Registered: 2008-06-20
Posts: 205

Re: [SOLVED] Time Issue

HardwareClock is set to localtime.

date and hwclock are displaying the correct details.

Hence not sure where the problem lies here.

Offline

#4 2008-07-08 15:37:06

kclive18
Member
From: Columbus, Ohio, USA
Registered: 2008-05-08
Posts: 219

Re: [SOLVED] Time Issue

Gmail's time is most likely supplied from Google's servers and not your Arch machine.  It may be your Google Account profile settings that is set to the wrong time zone (mine is set correctly to the Eastern Time Zone).

Last edited by kclive18 (2008-07-08 15:37:32)


My Rigs:
- Mid-2007 iMac 20", Intel 2GHz Core 2 Duo, 2x1GB DDR2-800, 250GB SATA HDD, and...MIGHTY MOUSE!!! tongue, OSX 10.5 Leopard, ATI Radeon 2400XT 128MB
- HP zv6203cl, AMD Athlon 64 3200 S939, 2x512MB DDR400, 80GB 4200rpm HDD, ATI Radeon Xpress 200M 128MB, Arch i686 cool
- 1986 Gibson SG Junior Cherry Red, Ibanez 15W amp, DigiTech RP250 modeling processor

Offline

#5 2008-07-08 15:48:29

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

Re: [SOLVED] Time Issue

kclive18 wrote:

Gmail's time is most likely supplied from Google's servers and not your Arch machine.  It may be your Google Account profile settings that is set to the wrong time zone (mine is set correctly to the Eastern Time Zone).

That is true...but then he would have the same problem in Windows as well - as long as he is talking about the same GMail account.


Forum Rules

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

Offline

#6 2008-07-08 15:51:08

RAH
Member
Registered: 2008-06-20
Posts: 205

Re: [SOLVED] Time Issue

This is odd.  I changed the time zone to the correct one and it didn't make any difference, but yes it works and has worked fine in Windows.  I've noticed the same issue with other things like Kayako.

Offline

#7 2008-08-01 13:04:28

RAH
Member
Registered: 2008-06-20
Posts: 205

Re: [SOLVED] Time Issue

Hmm - just noticed something.  When I hover my cursor over the clock in Gnome it says (PDT).  The time is correct but the time zone is not?

Offline

#8 2008-08-01 13:18:38

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: [SOLVED] Time Issue

Is your TIMEZONE setting in /etc/rc.conf correct?

Offline

#9 2008-08-01 18:09:25

RAH
Member
Registered: 2008-06-20
Posts: 205

Re: [SOLVED] Time Issue

Changing the timezone to GMT or Greenwich seems to completely knock off my clock, now it's 5 hours ahead.  I don't understand why this is so complicated...

Also I can't find how to manually adjust the time, the option in the Gnome manual regarding the adjust time option - that option is not displayed for me.  Perhaps it can only be done in root but Gnome doesn't work as root.

Last edited by RAH (2008-08-01 18:11:24)

Offline

#10 2008-08-01 18:38:06

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: [SOLVED] Time Issue

Check this out.

What I basically did was adding a time.cron script in /etc/cron.hourly (making sure it was executable):

ntpdate -b <ntp server address here>

Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#11 2008-08-01 19:46:26

RAH
Member
Registered: 2008-06-20
Posts: 205

Re: [SOLVED] Time Issue

finferflu wrote:

Check this out.

What I basically did was adding a time.cron script in /etc/cron.hourly (making sure it was executable):

ntpdate -b <ntp server address here>

That's one option but there must be a simpler way surely?

Offline

#12 2008-08-01 22:16:30

rooloo
Member
Registered: 2008-07-09
Posts: 218

Re: [SOLVED] Time Issue

RAH wrote:
finferflu wrote:

Check this out.

What I basically did was adding a time.cron script in /etc/cron.hourly (making sure it was executable):

ntpdate -b <ntp server address here>

That's one option but there must be a simpler way surely?

yes, just run ntpdate/ntpd as a daemon in rc.conf on boot.

DAEMONS=(syslog-ng !iptables network netfs crond alsa hal fam slim @ntpdate @ntpd !bftpd @lighttpd !sshd !mysqld)

read the wiki and search the forums, there are plenty of old threads with this exact same question, that where solved.

Here is a small list of threads, http://bbs.archlinux.org/search.php?sea … 1502064960

Last edited by rooloo (2008-08-01 22:18:45)

Offline

#13 2008-08-01 22:59:02

B-Con
Member
From: USA
Registered: 2007-12-17
Posts: 554
Website

Re: [SOLVED] Time Issue

rooloo wrote:

Search links expire, btw.

Offline

#14 2008-08-01 23:01:24

rooloo
Member
Registered: 2008-07-09
Posts: 218

Re: [SOLVED] Time Issue

B-Con wrote:
rooloo wrote:

Search links expire, btw.

in that case search for 'ntpd clock', you will get same list I had.

Offline

#15 2008-08-02 10:48:45

RAH
Member
Registered: 2008-06-20
Posts: 205

Re: [SOLVED] Time Issue

Strange, this one seems to have solved itself after a few reboots.  Thanks for everyones help.

Offline

#16 2008-08-02 13:28:24

kclive18
Member
From: Columbus, Ohio, USA
Registered: 2008-05-08
Posts: 219

Re: [SOLVED] Time Issue

No problem.

I use openntpd to keep my computer's clock correct, and it is very easy to set up: http://wiki.archlinux.org/index.php/Net … l#OpenNTPD


My Rigs:
- Mid-2007 iMac 20", Intel 2GHz Core 2 Duo, 2x1GB DDR2-800, 250GB SATA HDD, and...MIGHTY MOUSE!!! tongue, OSX 10.5 Leopard, ATI Radeon 2400XT 128MB
- HP zv6203cl, AMD Athlon 64 3200 S939, 2x512MB DDR400, 80GB 4200rpm HDD, ATI Radeon Xpress 200M 128MB, Arch i686 cool
- 1986 Gibson SG Junior Cherry Red, Ibanez 15W amp, DigiTech RP250 modeling processor

Offline

Board footer

Powered by FluxBB