gtkclocksetup won't change timezone

You think you have found a bug? Let us know about it.
Post Reply
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

gtkclocksetup won't change timezone

Post by mimosa »

This may just be something I broke locally, but it's not working for me. clocksetup works fine. The graphical version seems to work, but doesn't actually change it:

Code: Select all

mimosa[~]$ ls -la /etc/localtime*
-rw-r--r-- 1 root root 3687 Dec 28 14:56 /etc/localtime
lrwxrwxrwx 1 root root   33 Dec 28 14:56 /etc/localtime-copied-from -> /usr/share/zoneinfo/Europe/London
-rw-r--r-- 1 root root 1909 Nov 30  2099 /etc/localtime~
mimosa[~]$ sudo gtkclocksetup                   # change to Malta time
Starting the ntpd service
Starting NTP daemon:  /usr/sbin/ntpd -g
mimosa[~]$ ls -la /etc/localtime*
-rw-r--r-- 1 root root 3687 Dec 28 14:56 /etc/localtime
lrwxrwxrwx 1 root root   33 Dec 28 14:56 /etc/localtime-copied-from -> /usr/share/zoneinfo/Europe/London
-rw-r--r-- 1 root root 1909 Nov 30  2099 /etc/localtime~
That stray file~ is left over from when I tried to fix it by editing /etc/localtime directly, before I'd looked into it properly.
User avatar
gapan
Salix Wizard
Posts: 6238
Joined: 6. Jun 2009, 17:40

Re: gtkclocksetup won't change timezone

Post by gapan »

Confirmed. I'll look into it.
Image
Image
User avatar
gapan
Salix Wizard
Posts: 6238
Joined: 6. Jun 2009, 17:40

Re: gtkclocksetup won't change timezone

Post by gapan »

OK, I think I fixed it. I just uploaded version 1.5.3 to the repos. Thanks for the report!
Image
Image
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: gtkclocksetup won't change timezone

Post by mimosa »

I can confirm it works here - the new package hasn't synced yet for me, but I patched the code.

By the way, take a look at line 230 of clocksetup - is that right? I mean the 'sync'.

Option 5 of clocksetup fails for me whether or not ntpd is running, with the message 'Something went wrong. Time was not adjusted.'

Edit =
Similarly, with gtkclocksetup's ntp_sync_now function - it doesn't seem to do anything here.
User avatar
gapan
Salix Wizard
Posts: 6238
Joined: 6. Jun 2009, 17:40

Re: gtkclocksetup won't change timezone

Post by gapan »

Ah, that was a remnant of the old rc.ntpd script. Fixed it now in salixtools-1.11.2.

EDIT: I only saw your edit after I have uploaded the package. This will have to be fixed in gtkclocksetup too...
Image
Image
User avatar
gapan
Salix Wizard
Posts: 6238
Joined: 6. Jun 2009, 17:40

Re: gtkclocksetup won't change timezone

Post by gapan »

OK, fixed that in salixtools-gtk-1.5.4 too.
Image
Image
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: gtkclocksetup won't change timezone

Post by mimosa »

All now appears to be working well here.
Post Reply