Bug 170380 - locale time setting error
Summary: locale time setting error
Status: RESOLVED WORKSFORME
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: 4.3.2
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-04 13:09 UTC by Gerry Gavigan
Modified: 2010-02-28 18:05 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot (100.85 KB, image/png)
2009-10-09 11:58 UTC, Christophe Marin
Details
korganizer screenshot in KDE 4.4 (90.39 KB, image/png)
2009-10-10 11:50 UTC, Christophe Marin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gerry Gavigan 2008-09-04 13:09:15 UTC
Version:            (using KDE 4.1.1)
OS:                Linux
Installed from:    SuSE RPMs

The timezone defaults to a different region in Europe despite correct settings in Configure Desktop and resetting it in settings -> configure calendar
Comment 1 Allen Winter 2008-09-04 15:32:01 UTC
I assume you mean that you are setting a timezone
in the Settings->Configure Calendar->Time&Date dialog??
and that setting isn't being used properly??

please provide more details:
 what timezone are you setting
 what timezone are you getting

Comment 2 Gerry Gavigan 2008-09-04 15:47:32 UTC
I keep setting it to Europe/London, it keeps resetting to Europe/Guernsey.  Not drastic in itself but it should be happening, (should it?) 
Comment 3 Allen Winter 2008-09-05 15:58:42 UTC
confirmed.
changing the timezone in the config dialog isn't being saved.
Comment 4 info 2008-12-05 18:39:02 UTC
Is this the same as bug 115763 and bug 159171?
Comment 5 Gerry Gavigan 2008-12-06 01:21:18 UTC
Looks very similar to 115763 not sure about the other one, though it's not so  remote I wonder why you are asking.  
Comment 6 Gerry Gavigan 2009-10-07 01:03:47 UTC
As KDE offers more and more bling, the timezone problem becomes more of  problem.

The clock in Yast is definitely set to London/United Kingdom

However
 
The kdepim problem still exists

The world clock widget(un)helpfully displays "Guernsey" 

The digital clock widget is set to "local time" and displays no location, but if I force London I get both London and Guernsey 

Does this indicate the existence of a (KDE?) list or dataset that isn't properly matched to the (Linux?)(master?) clock dataset?
Comment 7 Christophe Marin 2009-10-09 09:47:33 UTC
(In reply to comment #6)
> 
> The clock in Yast is definitely set to London/United Kingdom
> 
Yast is not a KDE application but a Opensuse one. 
Only 'Systemsettings/Regional & Language/Time & Dates' will affect the KDE applications.
Comment 8 Gerry Gavigan 2009-10-09 10:34:50 UTC
The system clock and system settings (as viewed through Yast or using "date" from the command line are set correctly to UTC and BST) Of course BST applies to a bigger area than London. 

Yast displays "London". Given that Yast is only updating system scripts, is this information stored somewhere for system wide use? 

Regionalisation is a KDE function. My regionalisation is set to GB, (£, ., dd/mm/yy, etc)

More and more KDE applications are picking up "Guernsey" from somewhere. Where is that "somewhere?  Presumably it is not the same "somewhere" that is storing "London"

Is the "somewhere" external to kdepim?
Comment 9 Christophe Marin 2009-10-09 11:47:27 UTC
apart from systemsettings/Date & Time I don't see anything that could change the default values then (I see a "Guernsey - Europe/GG" in the time zones list).
Comment 10 Gerry Gavigan 2009-10-09 11:52:13 UTC
I'm not sure I understand what you are saying.

There is an error, looking at earlier bug reports it seems to be a carry through from KDE 3.x
Comment 11 Christophe Marin 2009-10-09 11:58:01 UTC
Created attachment 37468 [details]
Screenshot

systemsettings/Date & Time screenshot
Comment 12 Gerry Gavigan 2009-10-10 00:05:16 UTC
With a bit of luck I've acquired this code fragment from the world clock plasmoid.  


KGlobal::locale()->insertCatalog("marble");
KGlobal::locale()->insertCatalog("marble_qt");
+ KGlobal::locale()->insertCatalog("timezones4");
setHasConfigurationInterface(true);
setAcceptHoverEvents(true);

Now, I am seriously busking here, but what's this "timezones4" thing?

Is it present in the digital clock and kdepim? 

BTW: see also http://forum.kde.org/viewtopic.php?f=20&t=77107

If someone could give me a few pointers I'm happy to carry on amateur sleuthing.
Comment 13 Gerry Gavigan 2009-10-10 01:01:41 UTC
intended as helpful and hopefully relevant research for those that have a clue (as in I don't have a clue) 

------------

http://lists.kde.org/?l=kde-commits&m=125060206806198&w=2

 M  +1 -1      messages/kdelibs/timezones4.po  

-------------

See also

http://osdir.com/ml/kde-commits/2009-07/msg09639.html
http://osdir.com/ml/kde-commits/2009-07/msg09637.html
Comment 14 Christophe Marin 2009-10-10 11:42:31 UTC
ok, two things:

- The KOrganizer screenshot on the KDE forum is outdated (http://forum.kde.org/viewtopic.php?f=20&t=77107#p123907).

Korganizer now uses the KDE timezone (= the one set in systemsettings/Date&Time)

I'm not sure if this is already the case in KDE 4.3. Allen ? 

- The timezones4.po file is the one that contains the translations for the time zones.

Since the official KDE language is en_US, there are translations for the en_GB locale.

both the stable and development branch have the appropriate string :

- stable (KDE 4.3.x): http://websvn.kde.org/branches/stable/l10n-kde4/en_GB/messages/kdelibs/timezones4.po?view=markup

- unstable (KDE 4.4): http://websvn.kde.org/trunk/l10n-kde4/en_GB/messages/kdelibs/timezones4.po?revision=935064&view=markup

(the interesting line is #2350).

- The plasma widgets can display any timezone you choose. This way, you can have two clocks displaying two different timezones.
Comment 15 Christophe Marin 2009-10-10 11:50:00 UTC
Created attachment 37485 [details]
korganizer screenshot in KDE 4.4

ok, that were 3 things :-)

Here's what the KOrganizer settings will look like in KDE 4.4.
Comment 16 Gerry Gavigan 2009-10-10 12:00:58 UTC
> The plasma widgets can display any timezone you 
> choose. This way, you can have two clocks displaying
> two different timezones

Thank you for taking me seriously. 

However the situation described above doesn't describe the problem.

By default the widgets show "Guernsey". When I try to force them to show "London" I get both.  It seems similar to the timezone problem in KOrganizer (which I also experience in 4.3.2)

While the screenshot from the forum is out of date, the problem seems relevant.
Comment 17 Gerry Gavigan 2009-10-10 12:22:30 UTC
line 2350 (London)   relates to #: TIMEZONES:806
line 2307 (Guernsey) relates to #: TIMEZONES:791

From the forum example: 

Chicago = 160, New_York = 334

from bug #115763

 Oslo = 818, Arctic/Longyearbyen = 483

So my big insight  :) 

If it is an error it is not an offset error and my next question is what is TIMEZONES?
Comment 18 Gerry Gavigan 2009-10-12 12:56:08 UTC
Other information I've found, which Ihope might be relevant or helpful

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=547169

KOrganizer storing events in wrong time (timezone issue)

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=481304

Wrong timezone calculation

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=474586

libkcal2b: Contains duplicate timezone info
Comment 19 Gerry Gavigan 2010-02-28 18:05:48 UTC
this appears to be working in 4.4.0