You are not logged in.

#1 2012-10-28 21:35:03

matyilona200
Member
Registered: 2012-06-21
Posts: 77

[SOLVED]unable to set/view timezone

A few days ago the time on my computer changed, it was 1 hour late. Since today the dalight saving started/ended in Hungary its now 2 hours late. I tought that I might have misconfigured the timezone, so I trie dto change it as its writtten in this wiki, but if I try timedatectl status or timedatectl set-timezone Europe/Budapest I get

[matyilona@localhost ~]$ timedatectl set-timezone Europe/Budapest
Failed to issue method call: Launch helper exited with unknown return code 1
[matyilona@localhost ~]$ timedatectl status
Failed to issue method call: Launch helper exited with unknown return code 1

Whats wrong?

Last edited by matyilona200 (2012-10-29 18:31:25)

Offline

#2 2012-10-28 22:22:07

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

Re: [SOLVED]unable to set/view timezone

According to some threads you might get this error because you're not booting with systemd.

https://bbs.archlinux.org/viewtopic.php … 07#p930207
https://bbs.archlinux.org/viewtopic.php … 8#p1182598


Edit:
I'm still using initscripts and if I run the commands you did, I get the same error.
If you're using initscripts too, what's the output of 'ls -l /etc/localtime' and 'hwclock -D'?

Last edited by karol (2012-10-28 22:26:39)

Offline

#3 2012-10-29 11:12:33

matyilona200
Member
Registered: 2012-06-21
Posts: 77

Re: [SOLVED]unable to set/view timezone

Yes I'm using initsripts. theres the output:

[matyilona@localhost ~]$ ls -l /etc/localtime
lrwxrwxrwx 1 root root 35 Jun 21 12:39 /etc/localtime -> /usr/share/zoneinfo/Europe/Budapest
[matyilona@localhost ~]$ hwclock -D
hwclock from util-linux 2.22.1
Using /dev interface to clock.
Last drift adjustment done at 0 seconds after 1969
Last calibration done at 0 seconds after 1969
Hardware clock is on UTC time
Assuming hardware clock is kept in UTC time.
Waiting for clock tick...
...got clock tick
Time read from Hardware Clock: 2012/10/29 18:00:53
Hw clock time : 2012/10/29 18:00:53 = 1351533653 seconds since 1969
Mon 29 Oct 2012 07:00:53 PM CET  -0.949399 seconds

Edit: Yesterday I tried editing /etc/adjtime, it didnt work, so I changed it back to original. but now the clock is about 7 hour early.

Last edited by matyilona200 (2012-10-29 11:15:15)

Offline

#4 2012-10-29 13:44:32

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

Re: [SOLVED]unable to set/view timezone

Last drift adjustment done at 0 seconds after 1969
Last calibration done at 0 seconds after 1969

This doesn't sound right :-)
Try editing /etc/adjtime so it looks more like this:

$ cat /etc/adjtime
0.000000 1348781591 0.000000
1348781591
UTC

Try setting the time to the correct hour https://wiki.archlinux.org/index.php?ti … #Set_clock

Offline

#5 2012-10-29 18:31:03

matyilona200
Member
Registered: 2012-06-21
Posts: 77

Re: [SOLVED]unable to set/view timezone

Thank you, hwclock --set worked! Now it's:

[matyilona@localhost ~]$ ls -l /etc/localtime
lrwxrwxrwx 1 root root 35 Jun 21 12:39 /etc/localtime -> /usr/share/zoneinfo/Europe/Budapest
[matyilona@localhost ~]$ hwclock -D
hwclock from util-linux 2.22.1
Using /dev interface to clock.
Last drift adjustment done at 1351535280 seconds after 1969
Last calibration done at 1351535280 seconds after 1969
Hardware clock is on UTC time
Assuming hardware clock is kept in UTC time.
Waiting for clock tick...
...got clock tick
Time read from Hardware Clock: 2012/10/29 18:33:06
Hw clock time : 2012/10/29 18:33:06 = 1351535586 seconds since 1969
Mon 29 Oct 2012 07:33:06 PM CET  -0.355628 seconds

Offline

Board footer

Powered by FluxBB