Bug 5851 - wrong clock time in KDE
Summary: wrong clock time in KDE
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: Installer (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: High major
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard: MGA2TOO
Keywords:
: 5965 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-05-11 11:18 CEST by episteme promeneur
Modified: 2015-05-19 14:32 CEST (History)
14 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description episteme promeneur 2012-05-11 11:18:41 CEST
Description of problem:


after the fist boot mageia displays : 8 h 40 mn but the good time is 10 h 40 mn

my config : french, paris time is gmt+2

no pb with mageia 2 b2 and b3
Comment 1 Manuel Hiebel 2012-05-12 20:00:19 CEST
what show you the file /etc/sysconfig/clock and the command 'date' ?
Comment 2 episteme promeneur 2012-05-13 17:26:59 CEST
/etc/sysconfig/clock

UTC=false
ARC=false
ZONE=Europe/Paris

date

dim. mai 13 15:26:22 CEST 2012
Comment 3 Frank Griffin 2012-05-14 17:52:18 CEST
I see this as well, with a New York timezone (GMT-4) showing localtime - 4.  Resetting the timezone to something else, exiting draktime, and going back in and resetting it to New York appears to fix this.  Possibly related to bug#4944.

CC: (none) => ftg

Remco Rijnders 2012-05-14 18:30:09 CEST

CC: (none) => remco

Comment 4 Remco Rijnders 2012-05-14 19:37:56 CEST
I've seen this as well I think, as did MrsB, but we both thought we may have misselected something, but this seems to be more than just user error now... increasing severity

Priority: Normal => High
Severity: normal => major

Anssi Hannula 2012-05-15 01:11:26 CEST

CC: (none) => anssi.hannula, mageia

Comment 5 Colin Guthrie 2012-05-15 11:02:06 CEST
Can you find out what your /etc/localtime file says?

It's a binary file, and it should essentially match what the, well localtime is. Generally speaking you can copy (or hardlink) the file from /usr/share/zoneinfo.

e.g. on my machine I have Europe/London set:

$ md5sum /usr/share/zoneinfo/Europe/London /etc/localtime
410c65079e6d14f4eedf50c19bd073f8  /usr/share/zoneinfo/Europe/London
410c65079e6d14f4eedf50c19bd073f8  /etc/localtime
Comment 6 Remco Rijnders 2012-05-15 11:09:41 CEST
Mine correctly is set to /usr/share/zoneinfo/Europe/Amsterdam. I think the problem is that it assumes my hardware clock is in localtime while I have it running on UTC. I don't think I was asked at install time if my hardware clock is set to local time or UTC.
Comment 7 Colin Guthrie 2012-05-15 11:38:13 CEST
Do you have ntpd running/installed?

In theory, the kernel will do localtime -> hw clock sync every 12 minutes when ntp is running.
Comment 8 episteme promeneur 2012-05-15 11:50:35 CEST
my config :

one PC
2 os :
- my everyday os mandriva 2010.2 i586
 + ntp (Europe|France: fr.pool.ntp.org)
 + zone Europe/Paris

clock file :

UTC=true
ARC=false
ZONE=Europe/Paris

- mageia 2 for testing purpose
 + zone Europe/Paris

clock file :

UTC=false
ARC=false
ZONE=Europe/Paris

$ md5sum /usr/share/zoneinfo/Europe/Paris /etc/localtime
07c4012a5a941cd20bd4baab9b10e3f4  /usr/share/zoneinfo/Europe/Paris
07c4012a5a941cd20bd4baab9b10e3f4  /etc/localtime

during mageia installation installer does not ask for user any question about clock time
Comment 9 Remco Rijnders 2012-05-15 11:57:47 CEST
(In reply to comment #7)
> Do you have ntpd running/installed?
> In theory, the kernel will do localtime -> hw clock sync every 12 minutes when
> ntp is running.

No, I haven't (fyi, this was during a plain DVD install without choosing or deselecting any exotic options).
Comment 10 Frank Griffin 2012-05-15 12:32:36 CEST
(In reply to comment #6)
> Mine correctly is set to /usr/share/zoneinfo/Europe/Amsterdam. I think the
> problem is that it assumes my hardware clock is in localtime while I have it
> running on UTC. I don't think I was asked at install time if my hardware clock
> is set to local time or UTC.

This has been my experience as well.  I believe that the install has historically assumed UTC unless it finds a Windows partition, in which case it assumes localtime.
Comment 11 Colin Guthrie 2012-05-15 13:00:39 CEST
Out of curiosity, does inst(In reply to comment #9)
> No, I haven't (fyi, this was during a plain DVD install without choosing or
> deselecting any exotic options).

Out of curiosity, does installing and starting ntpd.service make things work more smoothly (you may have to start it manually after reboot just now as I just realised I hadn't pushed an update for this package after a change in a different package)
Comment 12 Remco Rijnders 2012-05-15 13:22:16 CEST
(In reply to comment #11)
> Out of curiosity, does installing and starting ntpd.service make things work
> more smoothly (you may have to start it manually after reboot just now as I
> just realised I hadn't pushed an update for this package after a change in a
> different package)

I didn't reboot yet, but install ntp and doing systemctl start ntpd.service sets the time correctly.
Comment 13 Frank Griffin 2012-05-15 13:26:53 CEST
(In reply to comment #11)

> Out of curiosity, does installing and starting ntpd.service make things work
> more smoothly (you may have to start it manually after reboot just now as I
> just realised I hadn't pushed an update for this package after a change in a
> different package)

I always select ntp in the Summary part of install, but I didn't check to see whather it had been started.  It's possible that the mucking around with MCC draktime as described in bug#4944 started it.
Comment 14 Remco Rijnders 2012-05-18 17:51:01 CEST
*** Bug 5965 has been marked as a duplicate of this bug. ***

CC: (none) => isolde

Comment 15 Marja Van Waes 2012-05-26 13:03:31 CEST
Hi,

This bug was filed against cauldron, but we do not have cauldron at the moment.

Please report whether this bug is still valid for Mageia 2.

Thanks :)

Cheers,
marja

Keywords: (none) => NEEDINFO

Comment 16 Marja Van Waes 2012-06-17 10:54:08 CEST
I never had problems with time in any rc or pre2 with LXDE (didn't try KDE), but now I have a problem in 2 final with KDE. It still works well in LXDE.

Which DEs did you use when you had this problem?

CC: (none) => marja11

Comment 17 episteme promeneur 2012-07-17 11:09:21 CEST
i use kde
Comment 18 episteme promeneur 2012-07-17 14:10:19 CEST
mageia 2 x86_64

pb still there
Comment 19 Marja Van Waes 2012-07-30 18:20:10 CEST
cc'ing kde team

Anyone who didn't yet say which DE is used when seeing this bug, please say so.

So far episteme, Carolyn (from the duplicate) and I have it in KDE, I do *not* have it in LXDE

Keywords: NEEDINFO => (none)
CC: (none) => anaselli, balcaen.john, dmorganec, lmenut, nicolas.lecureuil, watersnowrock
Hardware: i586 => All
Summary: mageia2rc, wrong clock time => wrong clock time in KDE
Whiteboard: (none) => MGA2TOO

Comment 20 Carolyn Rowse 2012-08-04 18:38:12 CEST
I'm not getting this problem regularly with KDE and in fact I thought it had been solved, but a few days ago I went out shopping and when I came back the clock applet had changed to showing an hour earlier, even though the date and time settings were still correct.  I rebooted, same again.  The following day the problem had gone and I haven't had it again since.

Carolyn
Comment 21 episteme promeneur 2012-11-13 08:12:21 CET
Mageia 3 alpha 2

using kde

pb still there
episteme promeneur 2012-11-13 08:27:53 CET

Hardware: All => x86_64

Comment 22 Angelo Naselli 2012-11-13 09:25:08 CET
Funny, i haven't had it till yesterday when it was one hour later. I restarted
ntp and all went ok. Today is ok again. 

KDE env, x86_64 arch on norebook.

Angelo
Comment 23 episteme promeneur 2012-11-13 10:03:23 CET
i complete my comment #21

i installed mageia 3 alpha 2 x86_64
then
i open for the first time a kde session
then
i see clock indicates 10 h 23 instead of 11 h 23

i use mandriva 2010.2 i586 as my main distribution with ntpd on the same pc where i test mageia 3
Comment 24 episteme promeneur 2012-11-14 17:11:28 CET
i understand the pb.

my every day os mandriva 2010.2 write the utc time in the hardware clock.

mageia assume hardware clock time is local time (Paris,FR) and does not add 1 h
then display utc time instead of local time

but in another pc hardware clock may be local time.

there is no way to know if it is local time or utc time
then
the sole solution (as mandriva installation does) is too ask for the user what is the right time by displaying :

- hardware clock time
- hardware clock time + 1

obviously this must be generalized  with localization time shifting and saving energy time shifting
Comment 25 claire robinson 2012-11-14 17:23:27 CET
You can choose bios set to UTC or local time at the summary stage of the installer.
Comment 26 Juergen Harms 2013-03-29 12:05:43 CET
I just filed https://bugs.mageia.org/show_bug.cgi?id=9562 as an independant bug since it is clearly (exclusively ?) related to how the digital clock applet displays the time. But it looks like these 2 bugs are related.

CC: (none) => juergen.harms

Comment 27 Dick Gevers 2014-11-15 08:59:44 CET
@Juergen: since M3 installer will not be fixed, please change whiteboard to 5beta1 if it is still seen there, or alternatively kindly close it. Thanks v.m.
Comment 28 Thierry Vignaud 2015-05-19 14:32:03 CEST
No answer

Status: NEW => RESOLVED
CC: (none) => thierry.vignaud
Resolution: (none) => OLD


Note You need to log in before you can comment on or make changes to this bug.