You are not logged in.

#1 2008-03-02 20:14:49

cameron122000
Member
Registered: 2008-03-02
Posts: 30

Setting the Time not Working :\

I've been trying to set the correct time on my machine for a while now, but Arch still keeps saying that I'm in CET. I've gone into /etc/rc.conf and edited the correct strings. Currently, I've got it set to UTC, and the timezone is America/Los_Angeles. I've tried UTC and US/Pacific, UTC and US/Pacific-New, as well as localtime. Any ideas on what is keeping it from correctly setting the time?

Offline

#2 2008-03-02 20:20:10

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Setting the Time not Working :\

Welcome to the forums.

Try adding

TZ='America/Los_Angeles'; export TZ

in /etc/profile. Then run

source /etc/profile

Last edited by skottish (2008-03-02 20:21:41)

Offline

#3 2008-03-02 20:26:12

cameron122000
Member
Registered: 2008-03-02
Posts: 30

Re: Setting the Time not Working :\

I ran it. Do I need to reboot in order for it to take effect?

Offline

#4 2008-03-02 20:28:12

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Setting the Time not Working :\

cameron122000 wrote:

I ran it. Do I need to reboot in order for it to take effect?

I was hoping that running 'source /etc/profile' would do the trick. If not, rebooting should.

Offline

#5 2008-03-02 20:31:36

cameron122000
Member
Registered: 2008-03-02
Posts: 30

Re: Setting the Time not Working :\

Just rebooted. Still no change. :\ It says it's 8:30PM tonight, but it's only 12:30PM right now.

Offline

#6 2008-03-02 20:41:11

azleifel
Member
Registered: 2007-10-28
Posts: 486

Re: Setting the Time not Working :\

8 hours is the difference between UTC and PST.  If you have the BIOS clock set to your local time then the entries in /etc/rc.conf ought to be:

HARDWARECLOCK="localtime"
TIMEZONE="America/Los_Angeles"

Only set HARDWARECLOCK to UTC if the BIOS clock is set to UTC.

Offline

#7 2008-03-02 20:43:00

cameron122000
Member
Registered: 2008-03-02
Posts: 30

Re: Setting the Time not Working :\

That's the thing though. If I go into my BIOS, it's currently set to UTC. So then HARDWARECLOCK should be UTC, but for some reason it's not setting the right timezone.

Offline

#8 2008-03-02 21:00:52

ebirtaid
Member
From: USA
Registered: 2007-11-18
Posts: 52

Re: Setting the Time not Working :\

try running ntpd?

Offline

#9 2008-03-02 21:07:24

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Setting the Time not Working :\

openntpd is much easier to set up. It may take a few log ins to get fully synced.

Offline

#10 2008-03-02 22:01:08

azleifel
Member
Registered: 2007-10-28
Posts: 486

Re: Setting the Time not Working :\

I use openntpd too.  In the meantime, just out of curiosity, I set my rc.conf to UTC (same as GMT, which is my local timezone anyway) and America/Los_Angeles, rebooted and found that it was suddenly much earlier in the day...

Offline

#11 2008-03-02 22:53:40

aboutreefitty
Member
Registered: 2008-02-14
Posts: 5

Re: Setting the Time not Working :\

try running these as root:

date MMDDhhmmCCYY  
hwclock --utc --systohc
hwclock --show

Offline

#12 2008-03-02 23:50:27

cameron122000
Member
Registered: 2008-03-02
Posts: 30

Re: Setting the Time not Working :\

Nope it's still not working. All of these different things that I'm trying should at least change the time to a different number, but it's not changing at all. It keeps only using the UTC time, almost like it's not loading the timezone.

Offline

#13 2008-03-03 00:04:04

azleifel
Member
Registered: 2007-10-28
Posts: 486

Re: Setting the Time not Working :\

Are you using KDE or some other DE that lets you independently set a different timezone for a session?

Offline

#14 2008-03-03 00:33:22

cameron122000
Member
Registered: 2008-03-02
Posts: 30

Re: Setting the Time not Working :\

I'm using Openbox, but I'm using the time Conky is displaying.

Offline

#15 2008-03-03 00:35:05

dyscoria
Member
Registered: 2008-01-10
Posts: 1,007

Re: Setting the Time not Working :\

cameron122000 wrote:

I'm using Openbox, but I'm using the time Conky is displaying.

That uses your system time (either localtime or UTC).


flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)

Offline

Board footer

Powered by FluxBB