[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fix, NSTimeZone Abbreviations
From: |
Georg Fleischmann |
Subject: |
Fix, NSTimeZone Abbreviations |
Date: |
Tue, 5 Oct 2004 22:45:58 GMT |
Hi,
I realized that the list of time zone abbreviations coming with GNUstep is
very long and all keys are used multiple times. The dictionary generated for
mapping uses the first match from the file, which would map CET to Africa
(which would map back to WET). This is wrong, of course.
The abbreviation dictionary on OpenStep and Mac OS-X is a defined one to one
mapping, which allows a much better conversion.
I would suggest to replace the abbreviation file on GNUstep with the shorter
one-to-one list.
Here are the lists used on OpenStep and Apple. There is only a minor
difference between them (Apple added UTC and removed HDT).
Georg
OpenStep:
{
ADT = America/Halifax;
AFT = Asia/Kabul;
AKDT = America/Juneau;
AKST = America/Juneau;
AST = America/Halifax;
CDT = America/Chicago;
CEST = Europe/Rome;
CET = Europe/Rome;
CST = America/Chicago;
EDT = America/New_York;
EEST = Europe/Warsaw;
EET = Europe/Warsaw;
EST = America/New_York;
GMT = GMT;
HDT = Pacific/Honolulu;
HKST = Asia/Hong_Kong;
HST = Pacific/Honolulu;
JST = Asia/Tokyo;
MDT = America/Denver;
MSD = Europe/Moscow;
MSK = Europe/Moscow;
MST = America/Denver;
NZDT = Pacific/Auckland;
NZST = Pacific/Auckland;
PDT = America/Los_Angeles;
PST = America/Los_Angeles;
WEST = Europe/Paris;
WET = Europe/Paris;
YDT = America/Yakutat;
YST = America/Yakutat;
}
Mac OS X:
{
ADT = America/Halifax;
AFT = Asia/Kabul;
AKDT = America/Juneau;
AKST = America/Juneau;
AST = America/Halifax;
CDT = America/Chicago;
CEST = Europe/Rome;
CET = Europe/Rome;
CST = America/Chicago;
EDT = America/New_York;
EEST = Europe/Warsaw;
EET = Europe/Warsaw;
EST = America/New_York;
GMT = GMT;
HKST = Asia/Hong_Kong;
HST = Pacific/Honolulu;
JST = Asia/Tokyo;
MDT = America/Denver;
MSD = Europe/Moscow;
MSK = Europe/Moscow;
MST = America/Denver;
NZDT = Pacific/Auckland;
NZST = Pacific/Auckland;
PDT = America/Los_Angeles;
PST = America/Los_Angeles;
UTC = UTC;
WEST = Europe/Paris;
WET = Europe/Paris;
YDT = America/Yakutat;
YST = America/Yakutat;
}
- Fix, NSTimeZone Abbreviations,
Georg Fleischmann <=