Fix bug 977097 - Add more aliases for the UTC timezone. r=redDragon

--HG--
extra : rebase_source : 8cdfc26755b6d024e9557c8e06d2b837fa856126
This commit is contained in:
Philipp Kewisch 2014-02-27 16:31:20 +01:00
Родитель 07356a56b8
Коммит a2ec6da087
1 изменённых файлов: 11 добавлений и 3 удалений

Просмотреть файл

@ -95,9 +95,17 @@ calTimezoneService.prototype = {
this.mUTC = new calLibicalTimezone("UTC", null, "", "");
this.mUTC.mUTC = true;
}
this.mTimezoneCache.UTC = this.mUTC;
this.mTimezoneCache.utc = this.mUTC;
this.mTimezoneCache.Z = this.mUTC;
// These UTC aliases are taken from wikipedia, included in case
// other clients make use of them without specifying a definition.
const utcAliases = ["UTC", "utc", "Z", "Etc/GMT", "Etc/GMT+0",
"Etc/UCT", "Etc/Unversal", "Etc/UTC",
"Etc/Zulu", "GMT", "GMT+0", "GMT0",
"Greenwich", "UCT", "Universal", "Zulu"];
for (let zone of utcAliases) {
this.mTimezoneCache[zone] = this.mUTC;
}
}
return this.mUTC;