You are not logged in.

#1 2012-03-31 18:38:52

Reded
Member
From: Manchester, England
Registered: 2012-02-21
Posts: 242

[SOLVED] XClock didn't change with Daylight Savings

Hey all,

I live in England, and last week the time switched over to BST. However, xclock didn't seem to show the change.

hwclock --show
Sat 31 Mar 2012 18:27:40 GMT  -0.645611 seconds
date
Sat Mar 31 18:27:48 GMT 2012

/etc/rc.conf:

# LOCALIZATION
# ------------
HARDWARECLOCK="UTC"
TIMEZONE="Europe/London"
KEYMAP="uk"
CONSOLEFONT="161"
CONSOLEMAP=
LOCALE="en_GB.utf8"
DAEMON_LOCALE="yes"
USECOLOR="yes"

I've been through the Time wiki, and I'm still none the wiser.

I've got ntp installed, and have ran nptd -qg, and then hwclock -w. My clock still remains an hour behind, and it's starting to get confusing!

Thanks for any help, appreciated as always.

EDIT:

Re-installing tzdata and glibc solved the issue after trying lots of other fixes.

Last edited by Reded (2012-04-02 16:51:55)


"Some humans would do anything to see if it was possible to do it. If you put a large switch in some cave somewhere, with a sign on it saying "End-of-the-World Switch. PLEASE DO NOT TOUCH", the paint wouldn't even have time to dry."

Offline

#2 2012-03-31 18:50:18

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: [SOLVED] XClock didn't change with Daylight Savings

try changing

HARDWARECLOCK="localtime"

in /etc/rc.conf .


LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King

Offline

#3 2012-03-31 18:57:56

Reded
Member
From: Manchester, England
Registered: 2012-02-21
Posts: 242

Re: [SOLVED] XClock didn't change with Daylight Savings

Changed HARDWARECLOCK to localtime, rebooted, and my clock's still an hour behind.


"Some humans would do anything to see if it was possible to do it. If you put a large switch in some cave somewhere, with a sign on it saying "End-of-the-World Switch. PLEASE DO NOT TOUCH", the paint wouldn't even have time to dry."

Offline

#4 2012-03-31 23:40:18

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,824

Re: [SOLVED] XClock didn't change with Daylight Savings

hadrons123 wrote:

try changing

HARDWARECLOCK="localtime"

in /etc/rc.conf .

IMHO, that is not the best advice.  I would consider that to have been an experiment, and would now change it back.

can you please post the output of hwclock --debug

Edit:  Also, the output of pacman -Qs daylight

Last edited by ewaller (2012-03-31 23:42:53)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Online

#5 2012-03-31 23:53:03

Reded
Member
From: Manchester, England
Registered: 2012-02-21
Posts: 242

Re: [SOLVED] XClock didn't change with Daylight Savings

hwclock --debug:

hwclock from util-linux 2.21
Using /dev interface to clock.
Last drift adjustment done at 1333228052 seconds after 1969
Last calibration done at 1333228052 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/03/31 23:51:26
Hw clock time : 2012/03/31 23:51:26 = 1333237886 seconds since 1969
Sat 31 Mar 2012 23:51:26 GMT  -0.703858 seconds

pacman -Qs daylight:

local/tzdata 2012b-1
    Sources for time zone and daylight saving time data

And changed rc.conf back to UTC as advised smile


"Some humans would do anything to see if it was possible to do it. If you put a large switch in some cave somewhere, with a sign on it saying "End-of-the-World Switch. PLEASE DO NOT TOUCH", the paint wouldn't even have time to dry."

Offline

#6 2012-04-01 01:02:47

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,824

Re: [SOLVED] XClock didn't change with Daylight Savings

Interesting.  You are still on GMT.  I have just read the source for tzdata and it looks like you should have moved from GMT to BST last Sunday morning (six days ago).

Maybe there is a leap year bug that caused the calculation to go wrong in a leap year when a Sunday happens on the first.  Maybe.

Anyway,  as it is now Sunday there, why don't you see what happens at about 2 a.m.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Online

#7 2012-04-01 01:10:41

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,824

Re: [SOLVED] XClock didn't change with Daylight Savings

Oh, I just thought of something.

What is in /etc/localtime ?  On my system, it is a link:

ewaller@odin:~ 1113 %ls -l /etc/localtime 
lrwxrwxrwx 1 root root 39 Mar 22 22:38 /etc/localtime -> /usr/share/zoneinfo/America/Los_Angeles
ewaller@odin:~ 1114 %

Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Online

#8 2012-04-01 01:14:38

Reded
Member
From: Manchester, England
Registered: 2012-02-21
Posts: 242

Re: [SOLVED] XClock didn't change with Daylight Savings

It seems to be a link to /usr/share/zoneinfo/Europe/London smile

It's past 2AM (Yeah I'm a night person right now) And my clock still shows 1:15 tongue


"Some humans would do anything to see if it was possible to do it. If you put a large switch in some cave somewhere, with a sign on it saying "End-of-the-World Switch. PLEASE DO NOT TOUCH", the paint wouldn't even have time to dry."

Offline

#9 2012-04-01 01:31:16

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: [SOLVED] XClock didn't change with Daylight Savings

Setting the TZ environmental variable might help.  My installation, by default, has TZ unset.  If I run xclock, it shows current local time, as if TZ=America/NewYork, currently 21:25.  If, instead, I use this:

$ TZ=Europe/London xclock  # xclock shows 02:25

If this works for you, you could just export the TZ setting from one of your startup files.

I just found 'tzselect', which guides the user to a correctly formatted string for use with the TZ variable.

Offline

#10 2012-04-01 01:34:21

Reded
Member
From: Manchester, England
Registered: 2012-02-21
Posts: 242

Re: [SOLVED] XClock didn't change with Daylight Savings

I typed TZ=Europe/London xclock into terminal, and the clock shows 1:32 - Still an hour behind yikes


"Some humans would do anything to see if it was possible to do it. If you put a large switch in some cave somewhere, with a sign on it saying "End-of-the-World Switch. PLEASE DO NOT TOUCH", the paint wouldn't even have time to dry."

Offline

#11 2012-04-01 01:35:52

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,824

Re: [SOLVED] XClock didn't change with Daylight Savings

I am out of ideas.  I'll think about it the rest of the evening (I still have several hours of my Saturday night left, -- waiting for my daughter to come home)

My system has testing/tzdata 2012b-3 installed.  The source I looked at was b-1.  I don't know the difference between core and testing, but it may be an option to try.  The usual warnings about testing apply.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Online

#12 2012-04-01 01:47:02

Reded
Member
From: Manchester, England
Registered: 2012-02-21
Posts: 242

Re: [SOLVED] XClock didn't change with Daylight Savings

The Testing repo doesn't sound like a good idea when all it's for is to fix a clock - My experience with Arch so far has shown the potential for system breakage even without it enabled, but if it's a last resort I'll consider it tongue Thanks for sticking with this though, always appreciated big_smile


"Some humans would do anything to see if it was possible to do it. If you put a large switch in some cave somewhere, with a sign on it saying "End-of-the-World Switch. PLEASE DO NOT TOUCH", the paint wouldn't even have time to dry."

Offline

#13 2012-04-01 07:49:34

andesho91
Member
From: London, UK
Registered: 2011-11-20
Posts: 71

Re: [SOLVED] XClock didn't change with Daylight Savings

Hmm... that seems quite odd. Fellow Brit here, I seem to have had no problems with my clock time, but then again I changed it so that Arch is completely in control of the hwclock, and applied the Windows patch to not change the time. What is your other operating system, if you have any?


Laptop: AMD A4-3305M, 4GB RAM, Archlinux 64bit with XFCE4 and Linux Mint Maya with MATE.

Offline

#14 2012-04-01 13:36:40

Reded
Member
From: Manchester, England
Registered: 2012-02-21
Posts: 242

Re: [SOLVED] XClock didn't change with Daylight Savings

My other system is ubuntu but I don't often use it tongue


"Some humans would do anything to see if it was possible to do it. If you put a large switch in some cave somewhere, with a sign on it saying "End-of-the-World Switch. PLEASE DO NOT TOUCH", the paint wouldn't even have time to dry."

Offline

#15 2012-04-01 14:27:16

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: [SOLVED] XClock didn't change with Daylight Savings

Add a(n) hyphen and change the capitalization for the LOCALE.value in '/etc/rc.conf'.  This value should exactly match the spelling used in '/etc/locale.gen'.

Currently:  LOCALE="en_GB.utf8"
Should be:  LOCALE="en_GB.UTF-8"

Added:  You'll have to reboot for this to take effect.

Are you using a login manager?  I recall some old posts describing problems with gdm and locale settings.

Last edited by thisoldman (2012-04-01 14:32:17)

Offline

#16 2012-04-01 14:33:16

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [SOLVED] XClock didn't change with Daylight Savings

Install the ntp package (there are multipe ntp clients/servers in the repos) and use the ntpdate service. I had no problem whatsoever from adjusting from CET to CEST. Even my Android seems to cope tongue.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#17 2012-04-01 14:34:02

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

Re: [SOLVED] XClock didn't change with Daylight Savings

It bothered me too (don't have the xorg-xclock package tho, I think it's useless) so I checked the BIOS for any relevant setting (there wasn't any) and then I remembered that I dual boot with Windows XP... I booted into XP and I noticed that it automatically switched to "Current time zone: GTB Daylight Time", thus changing my hardware clock.


PS: I have HARDWARECLOCK="localtime" in /etc/rc.conf.


"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

#18 2012-04-01 14:54:45

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [SOLVED] XClock didn't change with Daylight Savings

I do have it myself, it's used by XDM. Haven't paid attention to the time so far though, but systemwide time is correct. Xclock does not act alone though.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#19 2012-04-01 15:22:52

Reded
Member
From: Manchester, England
Registered: 2012-02-21
Posts: 242

Re: [SOLVED] XClock didn't change with Daylight Savings

Hey all - I'm trying editting rc.conf as per thisoldman's instructions, restarting now -

As for the rest of your replies, i don't use a login manager, have NTP installed, and don't dual-boot with Windows tongue


"Some humans would do anything to see if it was possible to do it. If you put a large switch in some cave somewhere, with a sign on it saying "End-of-the-World Switch. PLEASE DO NOT TOUCH", the paint wouldn't even have time to dry."

Offline

#20 2012-04-01 16:19:35

Reded
Member
From: Manchester, England
Registered: 2012-02-21
Posts: 242

Re: [SOLVED] XClock didn't change with Daylight Savings

Editting rc.conf to have the proper capitalization on LOCALE didn't work, clock's still an hour behind sad


"Some humans would do anything to see if it was possible to do it. If you put a large switch in some cave somewhere, with a sign on it saying "End-of-the-World Switch. PLEASE DO NOT TOUCH", the paint wouldn't even have time to dry."

Offline

#21 2012-04-01 19:06:37

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: [SOLVED] XClock didn't change with Daylight Savings

I'm pretty sure this won't discover anything.

# pacman -Qo /usr/share/zoneinfo/Europe/London
/usr/share/zoneinfo/Europe/London is owned by tzdata 2012b-1
# pacman -Qo /etc/locale.gen 
/etc/locale.gen is owned by glibc 2.15-7

$ ls -l /etc/localtime
lrwxrwxrwx 1 root root 36 Mar 27 22:09 /etc/localtime -> /usr/share/zoneinfo/America/New_York
$ zdump Europe/London
Europe/London  Sun Apr  1 20:03:34 2012 BST

Offline

#22 2012-04-01 19:11:51

Reded
Member
From: Manchester, England
Registered: 2012-02-21
Posts: 242

Re: [SOLVED] XClock didn't change with Daylight Savings

All of those commands you posted showed about the same for me, except the last one, which showed 19:10:13 2012 GMT *NOT BST*

It seems my locale doesn't seem to change to BST tongue


"Some humans would do anything to see if it was possible to do it. If you put a large switch in some cave somewhere, with a sign on it saying "End-of-the-World Switch. PLEASE DO NOT TOUCH", the paint wouldn't even have time to dry."

Offline

#23 2012-04-01 19:45:59

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: [SOLVED] XClock didn't change with Daylight Savings

The obvious question, which I'll now ask, is are you fully updated?  The mirror you are using is up-to-date, and you've performed a 'pacman -Syy' before upgrading?

$ grep tzdata /var/log/pacman.log 
[2012-03-06 18:13] upgraded tzdata (2011n-1 -> 2012b-1)

The third line of output from this hwclock command might prove useful, "Assuming...":

$ hwclock -Dr
hwclock from util-linux 2.21
Using /dev interface to clock.
Assuming hardware clock is kept in UTC time. 
Waiting for clock tick...
...got clock tick
Time read from Hardware Clock: 2012/04/01 19:30:38
Hw clock time : 2012/04/01 19:30:38 = 1333308638 seconds since 1969
Sun 01 Apr 2012 03:30:38 PM EDT  -0.641525 seconds

Offline

#24 2012-04-01 19:55:52

Reded
Member
From: Manchester, England
Registered: 2012-02-21
Posts: 242

Re: [SOLVED] XClock didn't change with Daylight Savings

Yes I'm all up to date, though I'll run another -Syu just to make sure smile


$ hwclock -Dr
hwclock from util-linux 2.21
Using /dev interface to clock.
Last drift adjustment done at 1333297066 seconds after 1969
Last calibration done at 1333297066 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/04/01 19:55:14
Hw clock time : 2012/04/01 19:55:14 = 1333310114 seconds since 1969
Sun 01 Apr 2012 19:55:14 GMT  -0.891326 seconds

"Some humans would do anything to see if it was possible to do it. If you put a large switch in some cave somewhere, with a sign on it saying "End-of-the-World Switch. PLEASE DO NOT TOUCH", the paint wouldn't even have time to dry."

Offline

#25 2012-04-02 05:01:09

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: [SOLVED] XClock didn't change with Daylight Savings

I temporarily removed ntp from my daemons list in rc.conf and added hwclock and tried a reboot.  I can't duplicate the "NOT BST" warning.

I'm stumped.  The only suggestion I have left to make is to reinstall tzdata and glibc.  I'm pessimistic that the reinstallation will cure the problem.

Offline

Board footer

Powered by FluxBB