You are not logged in.

#1 2012-09-13 21:42:02

williamh
Member
Registered: 2012-09-11
Posts: 12

I can't change system timezone

Hi,

I'm a super newbie of arch linux.
I installed a new arch linux on my laptop follow the beginner guide:
https://wiki.archlinux.org/index.php/Beginners'_Guide

and I configured the timezone part, here is what I did:

ls -l /etc/localtime
lrwxrwxrwx 1 root root 39 Sep 12 03:55 /etc/localtime -> /usr/share/zoneinfo/America/Los_Angeles

But my system time is set to Europe London, and I can't change it.

Please help!

Thanks,

Offline

#2 2012-09-13 21:43:43

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

Re: I can't change system timezone

are you using a pure systemd setup or a mix of sysvinit & systemd ?


Forum Rules

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

Offline

#3 2012-09-13 21:48:13

williamh
Member
Registered: 2012-09-11
Posts: 12

Re: I can't change system timezone

Thanks for reply!
I'm sorry, I don't understand what do you mean by " are you using a pure systemd setup or a mix of sysvinit & systemd ? "
How can I check this?

Thanks!

Offline

#4 2012-09-13 21:52:24

williamh
Member
Registered: 2012-09-11
Posts: 12

Re: I can't change system timezone

I run this command:

hwclock --systohc --utc

during the installation, is this the reason?

Thanks

BTW, I installed two system on my laptop, arch linux and win 7

Last edited by williamh (2012-09-13 21:53:54)

Offline

#5 2012-09-13 22:00:14

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

Re: I can't change system timezone

What he means is, are you using "init=/bin/systemd" on one of the lines in the bootloader's configuration file?

That would be a "pure" systemd setup (well, pure would probably be getting rid of rc.conf too).


https://wiki.archlinux.org/index.php/Be … e#Timezone

If you are using systemd's timedated, you might wish to also edit the file /etc/timezone and write your <Zone>/<Subzone>.


"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

#6 2012-09-13 22:15:36

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

Re: I can't change system timezone

if you want to use a dual boot, make sure you put in the fix for Windows to use UTC as well. If not I'd advise using localtime


Forum Rules

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

Offline

#7 2012-09-13 22:15:48

williamh
Member
Registered: 2012-09-11
Posts: 12

Re: I can't change system timezone

DSpider wrote:

What he means is, are you using "init=/bin/systemd" on one of the lines in the bootloader's configuration file?

That would be a "pure" systemd setup (well, pure would probably be getting rid of rc.conf too).


https://wiki.archlinux.org/index.php/Be … e#Timezone

If you are using systemd's timedated, you might wish to also edit the file /etc/timezone and write your <Zone>/<Subzone>.


I searched in my /boot/grub/grub.cfg file, and didn't find a line like :
init=/bin/systemd
So, I guess I'm not using systemd ?

And I also edit my /etc/timezone file , added one line :
America/Los_Angeles

Last edited by williamh (2012-09-13 22:17:06)

Offline

#8 2012-09-13 22:46:15

williamh
Member
Registered: 2012-09-11
Posts: 12

Re: I can't change system timezone

Inxsible wrote:

if you want to use a dual boot, make sure you put in the fix for Windows to use UTC as well. If not I'd advise using localtime

Yes I changed the windows 7 registry to make it use UTC.
But my system time is still Europe London.

My /etc/localtime is link to America Los_Angeles:

lrwxrwxrwx 1 root root 39 Sep 12 03:55 /etc/localtime -> /usr/share/zoneinfo/America/Los_Angeles

Offline

#9 2012-09-13 23:04:47

williamh
Member
Registered: 2012-09-11
Posts: 12

Re: I can't change system timezone

my date command output:

[william@myarch ~]$ date
Thu Sep 13 09:02:55 PDT 2012

Offline

#10 2012-09-13 23:22:23

williamh
Member
Registered: 2012-09-11
Posts: 12

Re: I can't change system timezone

my hardware clock and software clock are the same, is this correct?

[william@myarch etc]$ hwclock
Thu 13 Sep 2012 09:21:07 AM PDT  -0.407032 seconds
[william@myarch etc]$ date
Thu Sep 13 09:21:11 PDT 2012

Offline

#11 2012-09-14 03:16:13

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

Re: I can't change system timezone

they are supposed to be the same


Forum Rules

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

Offline

#12 2012-09-14 03:17:22

williamh
Member
Registered: 2012-09-11
Posts: 12

Re: I can't change system timezone

I fixed the problem:
https://wiki.archlinux.org/index.php/Ne … col_daemon

Thank you all!

Offline

Board footer

Powered by FluxBB