You are not logged in.

#1 2008-11-30 10:34:56

slipper
Member
Registered: 2008-09-11
Posts: 28

[SOLVED] Time issues

So I'm having some time issues...
It is currently 10:33:00PM GMT+10 and the time displays incorrectly as seen below. smile

The return of the 'date' command:
Sun Nov 30 02:32:24 PST 2008

Settings in rc.conf:
LOCALE="en_AU.utf8"
HARDWARECLOCK="UTC"
USEDIRECTISA="no"
TIMEZONE="Hobart/Australia"

Please help, it's driving me mad...  mad

Last edited by slipper (2008-11-30 20:47:41)

Offline

#2 2008-11-30 10:48:53

string
Member
Registered: 2008-11-03
Posts: 286

Re: [SOLVED] Time issues

.. Then just .. manually set the time via `date` (or am I missing something?). Also consider using NTP.

Offline

#3 2008-11-30 11:37:46

slipper
Member
Registered: 2008-09-11
Posts: 28

Re: [SOLVED] Time issues

I've tried ntp, the time doesn't change.
I did manually set the time beforehand however it was still stuck on 'PST'.

Offline

#4 2008-11-30 11:45:34

Vintendo
Member
From: Netherlands
Registered: 2008-04-21
Posts: 375
Website

Re: [SOLVED] Time issues

Is the time in your BIOS correct?

Offline

#5 2008-11-30 11:48:24

slipper
Member
Registered: 2008-09-11
Posts: 28

Re: [SOLVED] Time issues

Vintendo wrote:

Is the time in your BIOS correct?

Yes it is set correctly. smile

Offline

#6 2008-11-30 11:55:49

briest
Member
From: Katowice, PL
Registered: 2006-05-04
Posts: 468

Re: [SOLVED] Time issues

slipper wrote:

TIMEZONE="Hobart/Australia"

Try "Australia/Hobart"

Offline

#7 2008-11-30 12:16:17

breize
Member
Registered: 2008-07-17
Posts: 8

Re: [SOLVED] Time issues

I would suggest installing "openntpd" ... Solved my time issues in no time wink

http://wiki.archlinux.org/index.php/NTP#OpenNTPD

Offline

#8 2008-11-30 12:57:41

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,094

Re: [SOLVED] Time issues

slipper wrote:

I've tried ntp, the time doesn't change.
I did manually set the time beforehand however it was still stuck on 'PST'.

1. ntp won't fix large offsets, you have to do that with ntpdate. (Or use openntpd instead, imo it's a lot better)
2. If you just changed rc.conf but haven't rebooted, then nothing will change. To set the timezone manually, cp /usr/share/zoneinfo/foo/bar /etc/localtime


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#9 2008-11-30 20:05:45

remote
Member
Registered: 2007-12-28
Posts: 44

Re: [SOLVED] Time issues

I did not take the time to look into it on some systems here either, so I added to /etc/rc.local
ln -sf ../usr/share/zoneinfo/EST /etc/localtime

Offline

#10 2008-11-30 20:47:24

slipper
Member
Registered: 2008-09-11
Posts: 28

Re: [SOLVED] Time issues

briest wrote:
slipper wrote:

TIMEZONE="Hobart/Australia"

Try "Australia/Hobart"

Argh, I can't believe I got this messed up, thankyou!. lol

Also thankyou for the advice on using openntpd. smile

Offline

#11 2008-12-01 01:52:34

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: [SOLVED] Time issues

Vintendo wrote:

Is the time in your BIOS correct?

Just to clarify:
When you set your system to use UTC time, the time in your bios should be in UTC time. When the system starts, it gets the UTC time from the BIOS and adjusts + or - according to your time zone; when you shutdown the opposite happens. For example my system is set to UTC time with America/New_York as my time zone which means -5 GMT. So if the hardware clock is set to 08:00, the system would boot up, read it and subtract five hours giving me 03:00 (the correct time). If you were to use localtime both the system and the hardware clock use the same time. This is only useful on dual boot systems with Windows because it only uses localtime and will mess up a linux UTC configured system. Otherwise UTC is superior because time stamps of a constant UTC time can be used and understood by other machines around the world in different time zones.

Last edited by T-Dawg (2008-12-01 01:54:52)

Offline

Board footer

Powered by FluxBB