Page 1 of 1

Time Zone acronyms review on Windows

Posted: 08.12.2007, 21:35
by Vincent
It seems that on non-English versions of Windows, time zone acronyms that are displayed within the time/date overlay can sometimes be confusing. As an example, my French version of Windows returns "Paris Madrid" as the timezone name instead of "Western European Time". Celestia then displays "PM" as the time zone acronym instead of the standardized "WET" abbreviation, which can be quite confusing:
Image


It would be interesting that a maximum of users on non-English Windows version report how time zone is displayed on their system. Just switch to local time, and please report your time zone acronym, along with your version of Windows such as:

---------------------------------
Windows version: French
Time Zone Acronym: PM
---------------------------------

Thanks !

Posted: 08.12.2007, 23:36
by Fenerit
Windows version: Italian
Time Zone Acronym: osEo

Posted: 09.12.2007, 01:10
by Adirondack
---------------------------------
Windows version: German
Time Zone Acronym: WN
---------------------------------

WN = Western European Normaltime

Latest CVS


Adirondack

Posted: 10.12.2007, 21:36
by Vincent
Massimo, Ulrich, Thanks.

Has anyone else noticed this kind of weird time zone abbreviations ?

Posted: 11.12.2007, 11:16
by Christophe
Vincent, I was thinking wouldn't it be even simpler not to display the timezone at all when using local time?

Specify UTC when it is in use and simply nothing otherwise, or maybe just 'DST' or 'STD' which is readily available in struct tm.

I don't see any way to solve this problem short of integrating zoneinfo. Note also that the switch to Qt probably won't solve the problem since Qt relies on the system's API for timezones.

Posted: 11.12.2007, 13:12
by Vincent
Christophe wrote:Vincent, I was thinking wouldn't it be even simpler not to display the timezone at all when using local time?

Christophe,

I would certainly agree with that, since time zone acronyms can sometimes be quite confusing, and when they're not, they don't bring that much information.

Then, would users who have a correct time zone acronym displayed on their system also agree with that ?

Posted: 11.12.2007, 14:30
by BobHegwood
Christophe wrote:Vincent, I was thinking wouldn't it be even simpler not to display the timezone at all when using local time?

Specify UTC when it is in use and simply nothing otherwise, or maybe just 'DST' or 'STD' which is readily available in struct tm.


For what it's worth, I like the 'STD' option. Sounds like a reasonable
alternative to the spaghetti mess you guys are seeing now. Since I'm
one of the spoiled EST people here, this wouldn't bother me for our
use either. If the user see's 'STD' he or she KNOWS what time zone
they're set up for, yes?

Thanks, Brain-Dead

Posted: 11.12.2007, 15:32
by ajtribick
Hmmm... not so sure that STD is such a good choice.

(Sorry to lower the tone)

Posted: 11.12.2007, 18:45
by BobHegwood
chaos syndrome wrote:Hmmm... not so sure that STD is such a good choice.

(Sorry to lower the tone)


Have you an alternative? I'm sure that the developer types here can
accommodate most anything with which you might be happier. :wink:

Posted: 11.12.2007, 18:59
by Christophe
We could use STD/DST and mark the strings for translation. That way the translator can use what is best depending on the language. For exemple: heure d'hiver/heure d'?©t?© in French.

Posted: 12.12.2007, 17:18
by Vincent
Christophe wrote:For exemple: heure d'hiver/heure d'?©t?© in French.

Hmm, wouldn't that be a little bit too long ?

Posted: 12.12.2007, 23:12
by Christophe
Well, there is no hard limit on the size of the timezone name. Since in French there is no common abbreviation I guess it's either that or nothing.

My patch if finally ready, you can get it here.

There are three formats available:
- Locale: uses strftime %c under Linux, same as TZName under Windows
- TZName: 'YYYY MMM DD HH:MM:SS TZName' with TZName the timezone name under Linux and the localized versions of DST/STD under Windows
- UTCOffset: 'YYYY MMM DD HH:MM:SS ?±HHMM'

Of course this can easily be extended to include new formats.

For the time being you can cycle through the formats with 'D' (Demo is disabled).

Here are some examples under Linux:
Image

Posted: 18.12.2007, 22:10
by Vincent
Christophe,

I've not tested your patch yet, since I'm quite busy at the moment.
I'll probably have a chance to test it next week end.
The examples you've posted looks promising, though.
Are you planning to add the 3 formats option in celestia.cfg ?

Posted: 18.12.2007, 22:49
by Christophe
Vincent wrote:Are you planning to add the 3 formats option in celestia.cfg ?


Following the discussion on the mailing list, I was rather planning on adding hooks to CelestiaCore and let the GUIs handle it as a new configuration option.