Timezone Mapping list,
smaller improvements
This commit is contained in:
parent
128e627a80
commit
b4b396ade2
87
java/Main.java
Normal file
87
java/Main.java
Normal file
@ -0,0 +1,87 @@
|
||||
/**
|
||||
* A small tool to create our timezone mappings list =)
|
||||
*/
|
||||
import java.util.TimeZone;
|
||||
|
||||
public class Main {
|
||||
static String map[] = new String[51]; // one field = 30 minutes step
|
||||
|
||||
private static void initMap() {
|
||||
map[0] = "Pacific/Midway";
|
||||
map[1] = "";
|
||||
map[2] = "Pacific/Fakaofo";
|
||||
map[3] = "Pacific/Marquesas";
|
||||
map[4] = "America/Anchorage";
|
||||
map[5] = "";
|
||||
map[6] = "America/Dawson";
|
||||
map[7] = "";
|
||||
map[8] = "America/Dawson_Creek";
|
||||
map[9] = "";
|
||||
map[10] = "America/Chicago";
|
||||
map[11] = "America/Caracas";
|
||||
map[12] = "America/Detroit";
|
||||
map[13] = "America/Caracas";
|
||||
map[14] = "America/Santiago";
|
||||
map[15] = "America/St_Johns";
|
||||
map[16] = "America/Sao_Paulo";
|
||||
map[17] = "";
|
||||
map[18] = "America/Noronha";
|
||||
map[19] = "";
|
||||
map[20] = "Atlantic/Cape_Verde";
|
||||
map[21] = "";
|
||||
map[22] = "Africa/Abidjan";
|
||||
map[23] = "";
|
||||
map[24] = "Europe/Vienna";
|
||||
map[25] = "";
|
||||
map[26] = "Asia/Jerusalem";
|
||||
map[27] = "";
|
||||
map[28] = "Africa/Addis_Ababa";
|
||||
map[29] = "Asia/Tehran";
|
||||
map[30] = "Asia/Dubai";
|
||||
map[31] = "Asia/Kabul";
|
||||
map[32] = "Antarctica/Mawson";
|
||||
map[33] = "Asia/Colombo";
|
||||
map[34] = "Antarctica/Vostok";
|
||||
map[35] = "Asia/Rangoon";
|
||||
map[36] = "Antarctica/Davis";
|
||||
map[37] = "";
|
||||
map[38] = "Antarctica/Casey";
|
||||
map[39] = "";
|
||||
map[40] = "Asia/Dili";
|
||||
map[41] = "Australia/Darwin";
|
||||
map[42] = "Australia/Currie";
|
||||
map[43] = "Australia/Lord_Howe";
|
||||
map[44] = "Antarctica/Macquarie";
|
||||
map[45] = "Pacific/Norfolk";
|
||||
map[46] = "Antarctica/McMurdo";
|
||||
map[47] = "";
|
||||
map[48] = "Pacific/Enderbury";
|
||||
map[49] = "";
|
||||
map[50] = "Pacific/Kiritimati";
|
||||
}
|
||||
|
||||
/**
|
||||
* @param args
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
initMap();
|
||||
|
||||
int i = 0;
|
||||
for(int time = -660; time < 900; time += 30) {
|
||||
|
||||
int hours = time / 60;
|
||||
int minutes = Math.abs(time) % 60;
|
||||
|
||||
String[] avaiId = TimeZone.getAvailableIDs(time*60*1000);
|
||||
|
||||
if(avaiId.length > 0) {
|
||||
System.out.printf("\t\t/*%+d:%02d*/\n", hours, minutes);
|
||||
for (String string : avaiId) {
|
||||
System.out.println("\t\t'" + string + "' : '" + map[i] + "',");
|
||||
}
|
||||
}
|
||||
|
||||
i++;
|
||||
}
|
||||
}
|
||||
}
|
@ -14,17 +14,11 @@ Zarafa.plugins.calendarimporter.data.Timezones = Ext.extend(Object, {
|
||||
|
||||
store : [
|
||||
['Pacific/Midway','(UTC -11:00) Midway, Niue, Pago Pago', -660],
|
||||
['America/Adak','(UTC -10:00) Adak', -600],
|
||||
['Pacific/Fakaofo','(UTC -10:00) Fakaofo, Honolulu, Johnston, Rarotonga, Tahiti', -600],
|
||||
['Pacific/Marquesas','(UTC -10:30) Marquesas', -630],
|
||||
['America/Anchorage','(UTC -09:00) Anchorage, Juneau, Nome, Sitka, Yakutat', -540],
|
||||
['Pacific/Gambier','(UTC -09:00) Gambier', -540],
|
||||
['America/Dawson','(UTC -08:00) Dawson, Los Angeles, Tijuana, Vancouver, Whitehorse', -480],
|
||||
['America/Santa_Isabel','(UTC -08:00) Santa Isabel', -480],
|
||||
['America/Metlakatla','(UTC -08:00) Metlakatla, Pitcairn', -480],
|
||||
['America/Dawson_Creek','(UTC -07:00) Dawson Creek, Hermosillo, Phoenix', -420],
|
||||
['America/Chihuahua','(UTC -07:00) Chihuahua, Mazatlan', -420],
|
||||
['America/Boise','(UTC -07:00) Boise, Cambridge Bay, Denver, Edmonton, Inuvik, Ojinaga, Shiprock, Yellowknife', -420],
|
||||
['Pacific/Fakaofo','(UTC -10:00) Adak, Fakaofo, Honolulu, Johnston, Rarotonga, Tahiti', -600],
|
||||
['Pacific/Marquesas','(UTC -09:30) Marquesas', -570],
|
||||
['America/Anchorage','(UTC -09:00) Gambier, Anchorage, Juneau, Nome, Sitka, Yakutat', -540],
|
||||
['America/Dawson','(UTC -08:00) Dawson, Los Angeles, Tijuana, Vancouver, Whitehorse, Santa Isabel, Metlakatla, Pitcairn', -480],
|
||||
['America/Dawson_Creek','(UTC -07:00) Dawson Creek, Hermosillo, Phoenix, Chihuahua, Mazatlan, Boise, Cambridge Bay, Denver, Edmonton, Inuvik, Ojinaga, Shiprock, Yellowknife', -420],
|
||||
['America/Chicago','(UTC -06:00) Beulah, Center, Chicago, Knox, Matamoros, Menominee, New Salem, Rainy River, Rankin Inlet, Resolute, Tell City, Winnipeg', -360],
|
||||
['America/Belize','(UTC -06:00) Belize, Costa Rica, El Salvador, Galapagos, Guatemala, Managua, Regina, Swift Current, Tegucigalpa', -360],
|
||||
['Pacific/Easter','(UTC -06:00) Easter', -360],
|
||||
@ -32,14 +26,14 @@ Zarafa.plugins.calendarimporter.data.Timezones = Ext.extend(Object, {
|
||||
['America/Detroit','(UTC -05:00) Detroit, Grand Turk, Indianapolis, Iqaluit, Louisville, Marengo, Monticello, Montreal, Nassau, New York, Nipigon, Pangnirtung, Petersburg, Thunder Bay, Toronto, Vevay, Vincennes, Winamac', -300],
|
||||
['America/Atikokan','(UTC -05:00) Atikokan, Bogota, Cayman, Guayaquil, Jamaica, Lima, Panama, Port-au-Prince', -300],
|
||||
['America/Havana','(UTC -05:00) Havana', -300],
|
||||
['America/Caracas','(UTC -05:30) Caracas', -330],
|
||||
['America/Caracas','(UTC -04:30) Caracas', -270],
|
||||
['America/Glace_Bay','(UTC -04:00) Bermuda, Glace Bay, Goose Bay, Halifax, Moncton, Thule', -240],
|
||||
['Atlantic/Stanley','(UTC -04:00) Stanley', -240],
|
||||
['America/Santiago','(UTC -04:00) Palmer, Santiago', -240],
|
||||
['America/Anguilla','(UTC -04:00) Anguilla, Antigua, Aruba, Barbados, Blanc-Sablon, Boa Vista, Curacao, Dominica, Eirunepe, Grenada, Guadeloupe, Guyana, Kralendijk, La Paz, Lower Princes, Manaus, Marigot, Martinique, Montserrat, Port of Spain, Porto Velho, Puerto Rico, Rio Branco, Santo Domingo, St Barthelemy, St Kitts, St Lucia, St Thomas, St Vincent, Tortola', -240],
|
||||
['America/Campo_Grande','(UTC -04:00) Campo Grande, Cuiaba', -240],
|
||||
['America/Asuncion','(UTC -04:00) Asuncion', -240],
|
||||
['America/St_Johns','(UTC -04:30) St Johns', -270],
|
||||
['America/St_Johns','(UTC -03:30) St Johns', -210],
|
||||
['America/Sao_Paulo','(UTC -03:00) Sao Paulo', -180],
|
||||
['America/Araguaina','(UTC -03:00) Araguaina, Bahia, Belem, Buenos Aires, Catamarca, Cayenne, Cordoba, Fortaleza, Jujuy, La Rioja, Maceio, Mendoza, Paramaribo, Recife, Rio Gallegos, Rothera, Salta, San Juan, Santarem, Tucuman, Ushuaia', -180],
|
||||
['America/Montevideo','(UTC -03:00) Montevideo', -180],
|
||||
@ -52,7 +46,7 @@ Zarafa.plugins.calendarimporter.data.Timezones = Ext.extend(Object, {
|
||||
['Atlantic/Canary','(UTC) Canary, Dublin, Faroe, Guernsey, Isle of Man, Jersey, Lisbon, London, Madeira', 0],
|
||||
['Africa/Abidjan','(UTC) Abidjan, Accra, Bamako, Banjul, Bissau, Casablanca, Conakry, Dakar, Danmarkshavn, El Aaiun, Freetown, Lome, Monrovia, Nouakchott, Ouagadougou, Reykjavik, Sao Tome, St Helena', 0],
|
||||
['Africa/Algiers','(UTC +01:00) Algiers, Bangui, Brazzaville, Douala, Kinshasa, Lagos, Libreville, Luanda, Malabo, Ndjamena, Niamey, Porto-Novo, Tunis', 60],
|
||||
['Africa/Ceuta','(UTC +01:00) Amsterdam, Andorra, Belgrade, Berlin, Bratislava, Brussels, Budapest, Ceuta, Copenhagen, Gibraltar, Ljubljana, Longyearbyen, Luxembourg, Madrid, Malta, Monaco, Oslo, Paris, Podgorica, Prague, Rome, San Marino, Sarajevo, Skopje, Stockholm, Tirane, Vaduz, Vatican, Vienna, Warsaw, Zagreb, Zurich', 60],
|
||||
['Europe/Vienna','(UTC +01:00) Amsterdam, Andorra, Belgrade, Berlin, Bratislava, Brussels, Budapest, Ceuta, Copenhagen, Gibraltar, Ljubljana, Longyearbyen, Luxembourg, Madrid, Malta, Monaco, Oslo, Paris, Podgorica, Prague, Rome, San Marino, Sarajevo, Skopje, Stockholm, Tirane, Vaduz, Vatican, Vienna, Warsaw, Zagreb, Zurich', 60],
|
||||
['Africa/Windhoek','(UTC +01:00) Windhoek', 60],
|
||||
['Asia/Damascus','(UTC +02:00) Damascus', 120],
|
||||
['Asia/Beirut','(UTC +02:00) Beirut', 120],
|
||||
@ -92,53 +86,646 @@ Zarafa.plugins.calendarimporter.data.Timezones = Ext.extend(Object, {
|
||||
|
||||
/* map all citys to the above timezones */
|
||||
map : {
|
||||
/* Pacific */
|
||||
/*-11:00*/
|
||||
'Etc/GMT+11' : 'Pacific/Midway',
|
||||
'Pacific/Midway' : 'Pacific/Midway',
|
||||
'Pacific/Niue' : 'Pacific/Midway',
|
||||
'Pacific/Pago_Pago' : 'Pacific/Midway',
|
||||
'Pacific/Fakaofo' : 'Pacific/Fakaofo',
|
||||
'Pacific/Samoa' : 'Pacific/Midway',
|
||||
'US/Samoa' : 'Pacific/Midway',
|
||||
/*-10:00*/
|
||||
'America/Adak' : 'Pacific/Fakaofo',
|
||||
'America/Atka' : 'Pacific/Fakaofo',
|
||||
'Etc/GMT+10' : 'Pacific/Fakaofo',
|
||||
'HST' : 'Pacific/Fakaofo',
|
||||
'Pacific/Honolulu' : 'Pacific/Fakaofo',
|
||||
'Pacific/Johnston' : 'Pacific/Fakaofo',
|
||||
'Pacific/Rarotonga' : 'Pacific/Fakaofo',
|
||||
'Pacific/Tahiti' : 'Pacific/Fakaofo',
|
||||
'SystemV/HST10' : 'Pacific/Fakaofo',
|
||||
'US/Aleutian' : 'Pacific/Fakaofo',
|
||||
'US/Hawaii' : 'Pacific/Fakaofo',
|
||||
/*-9:30*/
|
||||
'Pacific/Marquesas' : 'Pacific/Marquesas',
|
||||
'Pacific/Gambier' : 'Pacific/Gambier',
|
||||
'Pacific/Easter' : 'Pacific/Easter',
|
||||
'Pacific/Norfolk' : 'Pacific/Norfolk',
|
||||
'Pacific/Chatham' : 'Pacific/Chatham',
|
||||
'Pacific/Enderbury' : 'Pacific/Enderbury',
|
||||
'Pacific/Tongatapu' : 'Pacific/Enderbury',
|
||||
'Pacific/Apia' : 'Pacific/Apia',
|
||||
'Pacific/Kiritimati' : 'Pacific/Kiritimati',
|
||||
/* America */
|
||||
'America/Adak' : 'America/Adak',
|
||||
/*-9:00*/
|
||||
'AST' : 'America/Anchorage',
|
||||
'America/Anchorage' : 'America/Anchorage',
|
||||
'America/Juneau' : 'America/Anchorage',
|
||||
'America/Nome' : 'America/Anchorage',
|
||||
'America/Sitka' : 'America/Anchorage',
|
||||
'America/Yakutat' : 'America/Anchorage',
|
||||
'Etc/GMT+9' : 'America/Anchorage',
|
||||
'Pacific/Gambier' : 'America/Anchorage',
|
||||
'SystemV/YST9' : 'America/Anchorage',
|
||||
'SystemV/YST9YDT' : 'America/Anchorage',
|
||||
'US/Alaska' : 'America/Anchorage',
|
||||
/*-8:00*/
|
||||
'America/Dawson' : 'America/Dawson',
|
||||
'America/Ensenada' : 'America/Dawson',
|
||||
'America/Los_Angeles' : 'America/Dawson',
|
||||
'America/Metlakatla' : 'America/Dawson',
|
||||
'America/Santa_Isabel' : 'America/Dawson',
|
||||
'America/Tijuana' : 'America/Dawson',
|
||||
'America/Vancouver' : 'America/Dawson',
|
||||
'America/Whitehorse' : 'America/Dawson',
|
||||
'America/Santa_Isabel' : 'America/Santa_Isabel',
|
||||
'America/Metlakatla' : 'America/Metlakatla',
|
||||
'Canada/Pacific' : 'America/Dawson',
|
||||
'Canada/Yukon' : 'America/Dawson',
|
||||
'Etc/GMT+8' : 'America/Dawson',
|
||||
'Mexico/BajaNorte' : 'America/Dawson',
|
||||
'PST' : 'America/Dawson',
|
||||
'PST8PDT' : 'America/Dawson',
|
||||
'Pacific/Pitcairn' : 'America/Dawson',
|
||||
'SystemV/PST8' : 'America/Dawson',
|
||||
'SystemV/PST8PDT' : 'America/Dawson',
|
||||
'US/Pacific' : 'America/Dawson',
|
||||
'US/Pacific-New' : 'America/Dawson',
|
||||
/*-7:00*/
|
||||
'America/Boise' : 'America/Dawson_Creek',
|
||||
'America/Cambridge_Bay' : 'America/Dawson_Creek',
|
||||
'America/Chihuahua' : 'America/Dawson_Creek',
|
||||
'America/Creston' : 'America/Dawson_Creek',
|
||||
'America/Dawson_Creek' : 'America/Dawson_Creek',
|
||||
'America/Denver' : 'America/Dawson_Creek',
|
||||
'America/Edmonton' : 'America/Dawson_Creek',
|
||||
'America/Hermosillo' : 'America/Dawson_Creek',
|
||||
'America/Inuvik' : 'America/Dawson_Creek',
|
||||
'America/Mazatlan' : 'America/Dawson_Creek',
|
||||
'America/Ojinaga' : 'America/Dawson_Creek',
|
||||
'America/Phoenix' : 'America/Dawson_Creek',
|
||||
'America/Chihuahua' : 'America/Chihuahua',
|
||||
'America/Mazatlan' : 'America/Chihuahua'
|
||||
/* Europe */
|
||||
/* Africa */
|
||||
/* Australia */
|
||||
/* Atlantic */
|
||||
/* Antarctica */
|
||||
/* Artic */
|
||||
/* Asia */
|
||||
/* Indian */
|
||||
/* Others */
|
||||
|
||||
'America/Shiprock' : 'America/Dawson_Creek',
|
||||
'America/Yellowknife' : 'America/Dawson_Creek',
|
||||
'Canada/Mountain' : 'America/Dawson_Creek',
|
||||
'Etc/GMT+7' : 'America/Dawson_Creek',
|
||||
'MST' : 'America/Dawson_Creek',
|
||||
'MST7MDT' : 'America/Dawson_Creek',
|
||||
'Mexico/BajaSur' : 'America/Dawson_Creek',
|
||||
'Navajo' : 'America/Dawson_Creek',
|
||||
'PNT' : 'America/Dawson_Creek',
|
||||
'SystemV/MST7' : 'America/Dawson_Creek',
|
||||
'SystemV/MST7MDT' : 'America/Dawson_Creek',
|
||||
'US/Arizona' : 'America/Dawson_Creek',
|
||||
'US/Mountain' : 'America/Dawson_Creek',
|
||||
/*-6:00*/
|
||||
'America/Bahia_Banderas' : 'America/Chicago',
|
||||
'America/Belize' : 'America/Chicago',
|
||||
'America/Cancun' : 'America/Chicago',
|
||||
'America/Chicago' : 'America/Chicago',
|
||||
'America/Costa_Rica' : 'America/Chicago',
|
||||
'America/El_Salvador' : 'America/Chicago',
|
||||
'America/Guatemala' : 'America/Chicago',
|
||||
'America/Indiana/Knox' : 'America/Chicago',
|
||||
'America/Indiana/Tell_City' : 'America/Chicago',
|
||||
'America/Knox_IN' : 'America/Chicago',
|
||||
'America/Managua' : 'America/Chicago',
|
||||
'America/Matamoros' : 'America/Chicago',
|
||||
'America/Menominee' : 'America/Chicago',
|
||||
'America/Merida' : 'America/Chicago',
|
||||
'America/Mexico_City' : 'America/Chicago',
|
||||
'America/Monterrey' : 'America/Chicago',
|
||||
'America/North_Dakota/Beulah' : 'America/Chicago',
|
||||
'America/North_Dakota/Center' : 'America/Chicago',
|
||||
'America/North_Dakota/New_Salem' : 'America/Chicago',
|
||||
'America/Rainy_River' : 'America/Chicago',
|
||||
'America/Rankin_Inlet' : 'America/Chicago',
|
||||
'America/Regina' : 'America/Chicago',
|
||||
'America/Resolute' : 'America/Chicago',
|
||||
'America/Swift_Current' : 'America/Chicago',
|
||||
'America/Tegucigalpa' : 'America/Chicago',
|
||||
'America/Winnipeg' : 'America/Chicago',
|
||||
'CST' : 'America/Chicago',
|
||||
'CST6CDT' : 'America/Chicago',
|
||||
'Canada/Central' : 'America/Chicago',
|
||||
'Canada/East-Saskatchewan' : 'America/Chicago',
|
||||
'Canada/Saskatchewan' : 'America/Chicago',
|
||||
'Chile/EasterIsland' : 'America/Chicago',
|
||||
'Etc/GMT+6' : 'America/Chicago',
|
||||
'Mexico/General' : 'America/Chicago',
|
||||
'Pacific/Easter' : 'America/Chicago',
|
||||
'Pacific/Galapagos' : 'America/Chicago',
|
||||
'SystemV/CST6' : 'America/Chicago',
|
||||
'SystemV/CST6CDT' : 'America/Chicago',
|
||||
'US/Central' : 'America/Chicago',
|
||||
'US/Indiana-Starke' : 'America/Chicago',
|
||||
/*-5:00*/
|
||||
'America/Atikokan' : 'America/Detroit',
|
||||
'America/Bogota' : 'America/Detroit',
|
||||
'America/Cayman' : 'America/Detroit',
|
||||
'America/Coral_Harbour' : 'America/Detroit',
|
||||
'America/Detroit' : 'America/Detroit',
|
||||
'America/Fort_Wayne' : 'America/Detroit',
|
||||
'America/Grand_Turk' : 'America/Detroit',
|
||||
'America/Guayaquil' : 'America/Detroit',
|
||||
'America/Havana' : 'America/Detroit',
|
||||
'America/Indiana/Indianapolis' : 'America/Detroit',
|
||||
'America/Indiana/Marengo' : 'America/Detroit',
|
||||
'America/Indiana/Petersburg' : 'America/Detroit',
|
||||
'America/Indiana/Vevay' : 'America/Detroit',
|
||||
'America/Indiana/Vincennes' : 'America/Detroit',
|
||||
'America/Indiana/Winamac' : 'America/Detroit',
|
||||
'America/Indianapolis' : 'America/Detroit',
|
||||
'America/Iqaluit' : 'America/Detroit',
|
||||
'America/Jamaica' : 'America/Detroit',
|
||||
'America/Kentucky/Louisville' : 'America/Detroit',
|
||||
'America/Kentucky/Monticello' : 'America/Detroit',
|
||||
'America/Lima' : 'America/Detroit',
|
||||
'America/Louisville' : 'America/Detroit',
|
||||
'America/Montreal' : 'America/Detroit',
|
||||
'America/Nassau' : 'America/Detroit',
|
||||
'America/New_York' : 'America/Detroit',
|
||||
'America/Nipigon' : 'America/Detroit',
|
||||
'America/Panama' : 'America/Detroit',
|
||||
'America/Pangnirtung' : 'America/Detroit',
|
||||
'America/Port-au-Prince' : 'America/Detroit',
|
||||
'America/Thunder_Bay' : 'America/Detroit',
|
||||
'America/Toronto' : 'America/Detroit',
|
||||
'Canada/Eastern' : 'America/Detroit',
|
||||
'Cuba' : 'America/Detroit',
|
||||
'EST' : 'America/Detroit',
|
||||
'EST5EDT' : 'America/Detroit',
|
||||
'Etc/GMT+5' : 'America/Detroit',
|
||||
'IET' : 'America/Detroit',
|
||||
'Jamaica' : 'America/Detroit',
|
||||
'SystemV/EST5' : 'America/Detroit',
|
||||
'SystemV/EST5EDT' : 'America/Detroit',
|
||||
'US/East-Indiana' : 'America/Detroit',
|
||||
'US/Eastern' : 'America/Detroit',
|
||||
'US/Michigan' : 'America/Detroit',
|
||||
/*-4:30*/
|
||||
'America/Caracas' : 'America/Caracas',
|
||||
/*-4:00*/
|
||||
'America/Anguilla' : 'America/Santiago',
|
||||
'America/Antigua' : 'America/Santiago',
|
||||
'America/Argentina/San_Luis' : 'America/Santiago',
|
||||
'America/Aruba' : 'America/Santiago',
|
||||
'America/Asuncion' : 'America/Santiago',
|
||||
'America/Barbados' : 'America/Santiago',
|
||||
'America/Blanc-Sablon' : 'America/Santiago',
|
||||
'America/Boa_Vista' : 'America/Santiago',
|
||||
'America/Campo_Grande' : 'America/Santiago',
|
||||
'America/Cuiaba' : 'America/Santiago',
|
||||
'America/Curacao' : 'America/Santiago',
|
||||
'America/Dominica' : 'America/Santiago',
|
||||
'America/Eirunepe' : 'America/Santiago',
|
||||
'America/Glace_Bay' : 'America/Santiago',
|
||||
'America/Goose_Bay' : 'America/Santiago',
|
||||
'America/Grenada' : 'America/Santiago',
|
||||
'America/Guadeloupe' : 'America/Santiago',
|
||||
'America/Guyana' : 'America/Santiago',
|
||||
'America/Halifax' : 'America/Santiago',
|
||||
'America/Kralendijk' : 'America/Santiago',
|
||||
'America/La_Paz' : 'America/Santiago',
|
||||
'America/Lower_Princes' : 'America/Santiago',
|
||||
'America/Manaus' : 'America/Santiago',
|
||||
'America/Marigot' : 'America/Santiago',
|
||||
'America/Martinique' : 'America/Santiago',
|
||||
'America/Moncton' : 'America/Santiago',
|
||||
'America/Montserrat' : 'America/Santiago',
|
||||
'America/Port_of_Spain' : 'America/Santiago',
|
||||
'America/Porto_Acre' : 'America/Santiago',
|
||||
'America/Porto_Velho' : 'America/Santiago',
|
||||
'America/Puerto_Rico' : 'America/Santiago',
|
||||
'America/Rio_Branco' : 'America/Santiago',
|
||||
'America/Santiago' : 'America/Santiago',
|
||||
'America/Santo_Domingo' : 'America/Santiago',
|
||||
'America/St_Barthelemy' : 'America/Santiago',
|
||||
'America/St_Kitts' : 'America/Santiago',
|
||||
'America/St_Lucia' : 'America/Santiago',
|
||||
'America/St_Thomas' : 'America/Santiago',
|
||||
'America/St_Vincent' : 'America/Santiago',
|
||||
'America/Thule' : 'America/Santiago',
|
||||
'America/Tortola' : 'America/Santiago',
|
||||
'America/Virgin' : 'America/Santiago',
|
||||
'Antarctica/Palmer' : 'America/Santiago',
|
||||
'Atlantic/Bermuda' : 'America/Santiago',
|
||||
'Brazil/Acre' : 'America/Santiago',
|
||||
'Brazil/West' : 'America/Santiago',
|
||||
'Canada/Atlantic' : 'America/Santiago',
|
||||
'Chile/Continental' : 'America/Santiago',
|
||||
'Etc/GMT+4' : 'America/Santiago',
|
||||
'PRT' : 'America/Santiago',
|
||||
'SystemV/AST4' : 'America/Santiago',
|
||||
'SystemV/AST4ADT' : 'America/Santiago',
|
||||
/*-3:30*/
|
||||
'America/St_Johns' : 'America/St_Johns',
|
||||
'CNT' : '',
|
||||
'Canada/Newfoundland' : '',
|
||||
/*-3:00*/
|
||||
'AGT' : 'America/Sao_Paulo',
|
||||
'America/Araguaina' : 'America/Sao_Paulo',
|
||||
'America/Argentina/Buenos_Aires' : 'America/Sao_Paulo',
|
||||
'America/Argentina/Catamarca' : 'America/Sao_Paulo',
|
||||
'America/Argentina/ComodRivadavia' : 'America/Sao_Paulo',
|
||||
'America/Argentina/Cordoba' : 'America/Sao_Paulo',
|
||||
'America/Argentina/Jujuy' : 'America/Sao_Paulo',
|
||||
'America/Argentina/La_Rioja' : 'America/Sao_Paulo',
|
||||
'America/Argentina/Mendoza' : 'America/Sao_Paulo',
|
||||
'America/Argentina/Rio_Gallegos' : 'America/Sao_Paulo',
|
||||
'America/Argentina/Salta' : 'America/Sao_Paulo',
|
||||
'America/Argentina/San_Juan' : 'America/Sao_Paulo',
|
||||
'America/Argentina/Tucuman' : 'America/Sao_Paulo',
|
||||
'America/Argentina/Ushuaia' : 'America/Sao_Paulo',
|
||||
'America/Bahia' : 'America/Sao_Paulo',
|
||||
'America/Belem' : 'America/Sao_Paulo',
|
||||
'America/Buenos_Aires' : 'America/Sao_Paulo',
|
||||
'America/Catamarca' : 'America/Sao_Paulo',
|
||||
'America/Cayenne' : 'America/Sao_Paulo',
|
||||
'America/Cordoba' : 'America/Sao_Paulo',
|
||||
'America/Fortaleza' : 'America/Sao_Paulo',
|
||||
'America/Godthab' : 'America/Sao_Paulo',
|
||||
'America/Jujuy' : 'America/Sao_Paulo',
|
||||
'America/Maceio' : 'America/Sao_Paulo',
|
||||
'America/Mendoza' : 'America/Sao_Paulo',
|
||||
'America/Miquelon' : 'America/Sao_Paulo',
|
||||
'America/Montevideo' : 'America/Sao_Paulo',
|
||||
'America/Paramaribo' : 'America/Sao_Paulo',
|
||||
'America/Recife' : 'America/Sao_Paulo',
|
||||
'America/Rosario' : 'America/Sao_Paulo',
|
||||
'America/Santarem' : 'America/Sao_Paulo',
|
||||
'America/Sao_Paulo' : 'America/Sao_Paulo',
|
||||
'Antarctica/Rothera' : 'America/Sao_Paulo',
|
||||
'Atlantic/Stanley' : 'America/Sao_Paulo',
|
||||
'BET' : 'America/Sao_Paulo',
|
||||
'Brazil/East' : 'America/Sao_Paulo',
|
||||
'Etc/GMT+3' : 'America/Sao_Paulo',
|
||||
/*-2:00*/
|
||||
'America/Noronha' : 'America/Noronha',
|
||||
'Atlantic/South_Georgia' : 'America/Noronha',
|
||||
'Brazil/DeNoronha' : 'America/Noronha',
|
||||
'Etc/GMT+2' : 'America/Noronha',
|
||||
/*-1:00*/
|
||||
'America/Scoresbysund' : 'Atlantic/Cape_Verde',
|
||||
'Atlantic/Azores' : 'Atlantic/Cape_Verde',
|
||||
'Atlantic/Cape_Verde' : 'Atlantic/Cape_Verde',
|
||||
'Etc/GMT+1' : 'Atlantic/Cape_Verde',
|
||||
/*+0:00*/
|
||||
'Africa/Abidjan' : 'Africa/Abidjan',
|
||||
'Africa/Accra' : 'Africa/Abidjan',
|
||||
'Africa/Bamako' : 'Africa/Abidjan',
|
||||
'Africa/Banjul' : 'Africa/Abidjan',
|
||||
'Africa/Bissau' : 'Africa/Abidjan',
|
||||
'Africa/Casablanca' : 'Africa/Abidjan',
|
||||
'Africa/Conakry' : 'Africa/Abidjan',
|
||||
'Africa/Dakar' : 'Africa/Abidjan',
|
||||
'Africa/El_Aaiun' : 'Africa/Abidjan',
|
||||
'Africa/Freetown' : 'Africa/Abidjan',
|
||||
'Africa/Lome' : 'Africa/Abidjan',
|
||||
'Africa/Monrovia' : 'Africa/Abidjan',
|
||||
'Africa/Nouakchott' : 'Africa/Abidjan',
|
||||
'Africa/Ouagadougou' : 'Africa/Abidjan',
|
||||
'Africa/Sao_Tome' : 'Africa/Abidjan',
|
||||
'Africa/Timbuktu' : 'Africa/Abidjan',
|
||||
'America/Danmarkshavn' : 'Africa/Abidjan',
|
||||
'Atlantic/Canary' : 'Africa/Abidjan',
|
||||
'Atlantic/Faeroe' : 'Africa/Abidjan',
|
||||
'Atlantic/Faroe' : 'Africa/Abidjan',
|
||||
'Atlantic/Madeira' : 'Africa/Abidjan',
|
||||
'Atlantic/Reykjavik' : 'Africa/Abidjan',
|
||||
'Atlantic/St_Helena' : 'Africa/Abidjan',
|
||||
'Eire' : 'Africa/Abidjan',
|
||||
'Etc/GMT' : 'Africa/Abidjan',
|
||||
'Etc/GMT+0' : 'Africa/Abidjan',
|
||||
'Etc/GMT-0' : 'Africa/Abidjan',
|
||||
'Etc/GMT0' : 'Africa/Abidjan',
|
||||
'Etc/Greenwich' : 'Africa/Abidjan',
|
||||
'Etc/UCT' : 'Africa/Abidjan',
|
||||
'Etc/UTC' : 'Africa/Abidjan',
|
||||
'Etc/Universal' : 'Africa/Abidjan',
|
||||
'Etc/Zulu' : 'Africa/Abidjan',
|
||||
'Europe/Belfast' : 'Africa/Abidjan',
|
||||
'Europe/Dublin' : 'Africa/Abidjan',
|
||||
'Europe/Guernsey' : 'Africa/Abidjan',
|
||||
'Europe/Isle_of_Man' : 'Africa/Abidjan',
|
||||
'Europe/Jersey' : 'Africa/Abidjan',
|
||||
'Europe/Lisbon' : 'Africa/Abidjan',
|
||||
'Europe/London' : 'Africa/Abidjan',
|
||||
'GB' : 'Africa/Abidjan',
|
||||
'GB-Eire' : 'Africa/Abidjan',
|
||||
'GMT' : 'Africa/Abidjan',
|
||||
'GMT0' : 'Africa/Abidjan',
|
||||
'Greenwich' : 'Africa/Abidjan',
|
||||
'Iceland' : 'Africa/Abidjan',
|
||||
'Portugal' : 'Africa/Abidjan',
|
||||
'UCT' : 'Africa/Abidjan',
|
||||
'UTC' : 'Africa/Abidjan',
|
||||
'Universal' : 'Africa/Abidjan',
|
||||
'WET' : 'Africa/Abidjan',
|
||||
'Zulu' : 'Africa/Abidjan',
|
||||
/*+1:00*/
|
||||
'Africa/Algiers' : 'Europe/Vienna',
|
||||
'Africa/Bangui' : 'Europe/Vienna',
|
||||
'Africa/Brazzaville' : 'Europe/Vienna',
|
||||
'Africa/Ceuta' : 'Europe/Vienna',
|
||||
'Africa/Douala' : 'Europe/Vienna',
|
||||
'Africa/Kinshasa' : 'Europe/Vienna',
|
||||
'Africa/Lagos' : 'Europe/Vienna',
|
||||
'Africa/Libreville' : 'Europe/Vienna',
|
||||
'Africa/Luanda' : 'Europe/Vienna',
|
||||
'Africa/Malabo' : 'Europe/Vienna',
|
||||
'Africa/Ndjamena' : 'Europe/Vienna',
|
||||
'Africa/Niamey' : 'Europe/Vienna',
|
||||
'Africa/Porto-Novo' : 'Europe/Vienna',
|
||||
'Africa/Tunis' : 'Europe/Vienna',
|
||||
'Africa/Windhoek' : 'Europe/Vienna',
|
||||
'Arctic/Longyearbyen' : 'Europe/Vienna',
|
||||
'Atlantic/Jan_Mayen' : 'Europe/Vienna',
|
||||
'CET' : 'Europe/Vienna',
|
||||
'ECT' : 'Europe/Vienna',
|
||||
'Etc/GMT-1' : 'Europe/Vienna',
|
||||
'Europe/Amsterdam' : 'Europe/Vienna',
|
||||
'Europe/Andorra' : 'Europe/Vienna',
|
||||
'Europe/Belgrade' : 'Europe/Vienna',
|
||||
'Europe/Berlin' : 'Europe/Vienna',
|
||||
'Europe/Bratislava' : 'Europe/Vienna',
|
||||
'Europe/Brussels' : 'Europe/Vienna',
|
||||
'Europe/Budapest' : 'Europe/Vienna',
|
||||
'Europe/Copenhagen' : 'Europe/Vienna',
|
||||
'Europe/Gibraltar' : 'Europe/Vienna',
|
||||
'Europe/Ljubljana' : 'Europe/Vienna',
|
||||
'Europe/Luxembourg' : 'Europe/Vienna',
|
||||
'Europe/Madrid' : 'Europe/Vienna',
|
||||
'Europe/Malta' : 'Europe/Vienna',
|
||||
'Europe/Monaco' : 'Europe/Vienna',
|
||||
'Europe/Oslo' : 'Europe/Vienna',
|
||||
'Europe/Paris' : 'Europe/Vienna',
|
||||
'Europe/Podgorica' : 'Europe/Vienna',
|
||||
'Europe/Prague' : 'Europe/Vienna',
|
||||
'Europe/Rome' : 'Europe/Vienna',
|
||||
'Europe/San_Marino' : 'Europe/Vienna',
|
||||
'Europe/Sarajevo' : 'Europe/Vienna',
|
||||
'Europe/Skopje' : 'Europe/Vienna',
|
||||
'Europe/Stockholm' : 'Europe/Vienna',
|
||||
'Europe/Tirane' : 'Europe/Vienna',
|
||||
'Europe/Vaduz' : 'Europe/Vienna',
|
||||
'Europe/Vatican' : 'Europe/Vienna',
|
||||
'Europe/Vienna' : 'Europe/Vienna',
|
||||
'Europe/Warsaw' : 'Europe/Vienna',
|
||||
'Europe/Zagreb' : 'Europe/Vienna',
|
||||
'Europe/Zurich' : 'Europe/Vienna',
|
||||
'MET' : 'Europe/Vienna',
|
||||
'Poland' : 'Europe/Vienna',
|
||||
/*+2:00*/
|
||||
'ART' : 'Asia/Jerusalem',
|
||||
'Africa/Blantyre' : 'Asia/Jerusalem',
|
||||
'Africa/Bujumbura' : 'Asia/Jerusalem',
|
||||
'Africa/Cairo' : 'Asia/Jerusalem',
|
||||
'Africa/Gaborone' : 'Asia/Jerusalem',
|
||||
'Africa/Harare' : 'Asia/Jerusalem',
|
||||
'Africa/Johannesburg' : 'Asia/Jerusalem',
|
||||
'Africa/Kigali' : 'Asia/Jerusalem',
|
||||
'Africa/Lubumbashi' : 'Asia/Jerusalem',
|
||||
'Africa/Lusaka' : 'Asia/Jerusalem',
|
||||
'Africa/Maputo' : 'Asia/Jerusalem',
|
||||
'Africa/Maseru' : 'Asia/Jerusalem',
|
||||
'Africa/Mbabane' : 'Asia/Jerusalem',
|
||||
'Africa/Tripoli' : 'Asia/Jerusalem',
|
||||
'Asia/Amman' : 'Asia/Jerusalem',
|
||||
'Asia/Beirut' : 'Asia/Jerusalem',
|
||||
'Asia/Damascus' : 'Asia/Jerusalem',
|
||||
'Asia/Gaza' : 'Asia/Jerusalem',
|
||||
'Asia/Hebron' : 'Asia/Jerusalem',
|
||||
'Asia/Istanbul' : 'Asia/Jerusalem',
|
||||
'Asia/Jerusalem' : 'Asia/Jerusalem',
|
||||
'Asia/Nicosia' : 'Asia/Jerusalem',
|
||||
'Asia/Tel_Aviv' : 'Asia/Jerusalem',
|
||||
'CAT' : 'Asia/Jerusalem',
|
||||
'EET' : 'Asia/Jerusalem',
|
||||
'Egypt' : 'Asia/Jerusalem',
|
||||
'Etc/GMT-2' : 'Asia/Jerusalem',
|
||||
'Europe/Athens' : 'Asia/Jerusalem',
|
||||
'Europe/Bucharest' : 'Asia/Jerusalem',
|
||||
'Europe/Chisinau' : 'Asia/Jerusalem',
|
||||
'Europe/Helsinki' : 'Asia/Jerusalem',
|
||||
'Europe/Istanbul' : 'Asia/Jerusalem',
|
||||
'Europe/Kiev' : 'Asia/Jerusalem',
|
||||
'Europe/Mariehamn' : 'Asia/Jerusalem',
|
||||
'Europe/Nicosia' : 'Asia/Jerusalem',
|
||||
'Europe/Riga' : 'Asia/Jerusalem',
|
||||
'Europe/Simferopol' : 'Asia/Jerusalem',
|
||||
'Europe/Sofia' : 'Asia/Jerusalem',
|
||||
'Europe/Tallinn' : 'Asia/Jerusalem',
|
||||
'Europe/Tiraspol' : 'Asia/Jerusalem',
|
||||
'Europe/Uzhgorod' : 'Asia/Jerusalem',
|
||||
'Europe/Vilnius' : 'Asia/Jerusalem',
|
||||
'Europe/Zaporozhye' : 'Asia/Jerusalem',
|
||||
'Israel' : 'Asia/Jerusalem',
|
||||
'Libya' : 'Asia/Jerusalem',
|
||||
'Turkey' : 'Asia/Jerusalem',
|
||||
/*+3:00*/
|
||||
'Africa/Addis_Ababa' : 'Africa/Addis_Ababa',
|
||||
'Africa/Asmara' : 'Africa/Addis_Ababa',
|
||||
'Africa/Asmera' : 'Africa/Addis_Ababa',
|
||||
'Africa/Dar_es_Salaam' : 'Africa/Addis_Ababa',
|
||||
'Africa/Djibouti' : 'Africa/Addis_Ababa',
|
||||
'Africa/Juba' : 'Africa/Addis_Ababa',
|
||||
'Africa/Kampala' : 'Africa/Addis_Ababa',
|
||||
'Africa/Khartoum' : 'Africa/Addis_Ababa',
|
||||
'Africa/Mogadishu' : 'Africa/Addis_Ababa',
|
||||
'Africa/Nairobi' : 'Africa/Addis_Ababa',
|
||||
'Antarctica/Syowa' : 'Africa/Addis_Ababa',
|
||||
'Asia/Aden' : 'Africa/Addis_Ababa',
|
||||
'Asia/Baghdad' : 'Africa/Addis_Ababa',
|
||||
'Asia/Bahrain' : 'Africa/Addis_Ababa',
|
||||
'Asia/Kuwait' : 'Africa/Addis_Ababa',
|
||||
'Asia/Qatar' : 'Africa/Addis_Ababa',
|
||||
'Asia/Riyadh' : 'Africa/Addis_Ababa',
|
||||
'EAT' : 'Africa/Addis_Ababa',
|
||||
'Etc/GMT-3' : 'Africa/Addis_Ababa',
|
||||
'Europe/Kaliningrad' : 'Africa/Addis_Ababa',
|
||||
'Europe/Minsk' : 'Africa/Addis_Ababa',
|
||||
'Indian/Antananarivo' : 'Africa/Addis_Ababa',
|
||||
'Indian/Comoro' : 'Africa/Addis_Ababa',
|
||||
'Indian/Mayotte' : 'Africa/Addis_Ababa',
|
||||
/*+3:30*/
|
||||
'Asia/Tehran' : 'Asia/Tehran',
|
||||
'Iran' : 'Asia/Tehran',
|
||||
/*+4:00*/
|
||||
'Asia/Baku' : 'Asia/Dubai',
|
||||
'Asia/Dubai' : 'Asia/Dubai',
|
||||
'Asia/Muscat' : 'Asia/Dubai',
|
||||
'Asia/Tbilisi' : 'Asia/Dubai',
|
||||
'Asia/Yerevan' : 'Asia/Dubai',
|
||||
'Etc/GMT-4' : 'Asia/Dubai',
|
||||
'Europe/Moscow' : 'Asia/Dubai',
|
||||
'Europe/Samara' : 'Asia/Dubai',
|
||||
'Europe/Volgograd' : 'Asia/Dubai',
|
||||
'Indian/Mahe' : 'Asia/Dubai',
|
||||
'Indian/Mauritius' : 'Asia/Dubai',
|
||||
'Indian/Reunion' : 'Asia/Dubai',
|
||||
'NET' : 'Asia/Dubai',
|
||||
'W-SU' : 'Asia/Dubai',
|
||||
/*+4:30*/
|
||||
'Asia/Kabul' : 'Asia/Kabul',
|
||||
/*+5:00*/
|
||||
'Antarctica/Mawson' : 'Antarctica/Mawson',
|
||||
'Asia/Aqtau' : 'Antarctica/Mawson',
|
||||
'Asia/Aqtobe' : 'Antarctica/Mawson',
|
||||
'Asia/Ashgabat' : 'Antarctica/Mawson',
|
||||
'Asia/Ashkhabad' : 'Antarctica/Mawson',
|
||||
'Asia/Dushanbe' : 'Antarctica/Mawson',
|
||||
'Asia/Karachi' : 'Antarctica/Mawson',
|
||||
'Asia/Oral' : 'Antarctica/Mawson',
|
||||
'Asia/Samarkand' : 'Antarctica/Mawson',
|
||||
'Asia/Tashkent' : 'Antarctica/Mawson',
|
||||
'Etc/GMT-5' : 'Antarctica/Mawson',
|
||||
'Indian/Kerguelen' : 'Antarctica/Mawson',
|
||||
'Indian/Maldives' : 'Antarctica/Mawson',
|
||||
'PLT' : 'Antarctica/Mawson',
|
||||
/*+5:30*/
|
||||
'Asia/Calcutta' : 'Asia/Colombo',
|
||||
'Asia/Colombo' : 'Asia/Colombo',
|
||||
'Asia/Kolkata' : 'Asia/Colombo',
|
||||
'IST' : 'Asia/Colombo',
|
||||
/*+6:00*/
|
||||
'Antarctica/Vostok' : 'Antarctica/Vostok',
|
||||
'Asia/Almaty' : 'Antarctica/Vostok',
|
||||
'Asia/Bishkek' : 'Antarctica/Vostok',
|
||||
'Asia/Dacca' : 'Antarctica/Vostok',
|
||||
'Asia/Dhaka' : 'Antarctica/Vostok',
|
||||
'Asia/Qyzylorda' : 'Antarctica/Vostok',
|
||||
'Asia/Thimbu' : 'Antarctica/Vostok',
|
||||
'Asia/Thimphu' : 'Antarctica/Vostok',
|
||||
'Asia/Yekaterinburg' : 'Antarctica/Vostok',
|
||||
'BST' : 'Antarctica/Vostok',
|
||||
'Etc/GMT-6' : 'Antarctica/Vostok',
|
||||
'Indian/Chagos' : 'Antarctica/Vostok',
|
||||
/*+6:30*/
|
||||
'Asia/Rangoon' : 'Asia/Rangoon',
|
||||
'Indian/Cocos' : 'Asia/Rangoon',
|
||||
/*+7:00*/
|
||||
'Antarctica/Davis' : 'Antarctica/Davis',
|
||||
'Asia/Bangkok' : 'Antarctica/Davis',
|
||||
'Asia/Ho_Chi_Minh' : 'Antarctica/Davis',
|
||||
'Asia/Hovd' : 'Antarctica/Davis',
|
||||
'Asia/Jakarta' : 'Antarctica/Davis',
|
||||
'Asia/Novokuznetsk' : 'Antarctica/Davis',
|
||||
'Asia/Novosibirsk' : 'Antarctica/Davis',
|
||||
'Asia/Omsk' : 'Antarctica/Davis',
|
||||
'Asia/Phnom_Penh' : 'Antarctica/Davis',
|
||||
'Asia/Pontianak' : 'Antarctica/Davis',
|
||||
'Asia/Saigon' : 'Antarctica/Davis',
|
||||
'Asia/Vientiane' : 'Antarctica/Davis',
|
||||
'Etc/GMT-7' : 'Antarctica/Davis',
|
||||
'Indian/Christmas' : 'Antarctica/Davis',
|
||||
'VST' : 'Antarctica/Davis',
|
||||
/*+8:00*/
|
||||
'Antarctica/Casey' : 'Antarctica/Casey',
|
||||
'Asia/Brunei' : 'Antarctica/Casey',
|
||||
'Asia/Choibalsan' : 'Antarctica/Casey',
|
||||
'Asia/Chongqing' : 'Antarctica/Casey',
|
||||
'Asia/Chungking' : 'Antarctica/Casey',
|
||||
'Asia/Harbin' : 'Antarctica/Casey',
|
||||
'Asia/Hong_Kong' : 'Antarctica/Casey',
|
||||
'Asia/Kashgar' : 'Antarctica/Casey',
|
||||
'Asia/Krasnoyarsk' : 'Antarctica/Casey',
|
||||
'Asia/Kuala_Lumpur' : 'Antarctica/Casey',
|
||||
'Asia/Kuching' : 'Antarctica/Casey',
|
||||
'Asia/Macao' : 'Antarctica/Casey',
|
||||
'Asia/Macau' : 'Antarctica/Casey',
|
||||
'Asia/Makassar' : 'Antarctica/Casey',
|
||||
'Asia/Manila' : 'Antarctica/Casey',
|
||||
'Asia/Shanghai' : 'Antarctica/Casey',
|
||||
'Asia/Singapore' : 'Antarctica/Casey',
|
||||
'Asia/Taipei' : 'Antarctica/Casey',
|
||||
'Asia/Ujung_Pandang' : 'Antarctica/Casey',
|
||||
'Asia/Ulaanbaatar' : 'Antarctica/Casey',
|
||||
'Asia/Ulan_Bator' : 'Antarctica/Casey',
|
||||
'Asia/Urumqi' : 'Antarctica/Casey',
|
||||
'Australia/Perth' : 'Antarctica/Casey',
|
||||
'Australia/West' : 'Antarctica/Casey',
|
||||
'CTT' : 'Antarctica/Casey',
|
||||
'Etc/GMT-8' : 'Antarctica/Casey',
|
||||
'Hongkong' : 'Antarctica/Casey',
|
||||
'PRC' : 'Antarctica/Casey',
|
||||
'Singapore' : 'Antarctica/Casey',
|
||||
/*+9:00*/
|
||||
'Asia/Dili' : 'Asia/Dili',
|
||||
'Asia/Irkutsk' : 'Asia/Dili',
|
||||
'Asia/Jayapura' : 'Asia/Dili',
|
||||
'Asia/Pyongyang' : 'Asia/Dili',
|
||||
'Asia/Seoul' : 'Asia/Dili',
|
||||
'Asia/Tokyo' : 'Asia/Dili',
|
||||
'Etc/GMT-9' : 'Asia/Dili',
|
||||
'JST' : 'Asia/Dili',
|
||||
'Japan' : 'Asia/Dili',
|
||||
'Pacific/Palau' : 'Asia/Dili',
|
||||
'ROK' : 'Asia/Dili',
|
||||
/*+9:30*/
|
||||
'ACT' : 'Australia/Darwin',
|
||||
'Australia/Adelaide' : 'Australia/Darwin',
|
||||
'Australia/Broken_Hill' : 'Australia/Darwin',
|
||||
'Australia/Darwin' : 'Australia/Darwin',
|
||||
'Australia/North' : 'Australia/Darwin',
|
||||
'Australia/South' : 'Australia/Darwin',
|
||||
'Australia/Yancowinna' : 'Australia/Darwin',
|
||||
/*+10:00*/
|
||||
'AET' : 'Australia/Currie',
|
||||
'Antarctica/DumontDUrville' : 'Australia/Currie',
|
||||
'Asia/Yakutsk' : 'Australia/Currie',
|
||||
'Australia/ACT' : 'Australia/Currie',
|
||||
'Australia/Brisbane' : 'Australia/Currie',
|
||||
'Australia/Canberra' : 'Australia/Currie',
|
||||
'Australia/Currie' : 'Australia/Currie',
|
||||
'Australia/Hobart' : 'Australia/Currie',
|
||||
'Australia/Lindeman' : 'Australia/Currie',
|
||||
'Australia/Melbourne' : 'Australia/Currie',
|
||||
'Australia/NSW' : 'Australia/Currie',
|
||||
'Australia/Queensland' : 'Australia/Currie',
|
||||
'Australia/Sydney' : 'Australia/Currie',
|
||||
'Australia/Tasmania' : 'Australia/Currie',
|
||||
'Australia/Victoria' : 'Australia/Currie',
|
||||
'Etc/GMT-10' : 'Australia/Currie',
|
||||
'Pacific/Chuuk' : 'Australia/Currie',
|
||||
'Pacific/Guam' : 'Australia/Currie',
|
||||
'Pacific/Port_Moresby' : 'Australia/Currie',
|
||||
'Pacific/Saipan' : 'Australia/Currie',
|
||||
'Pacific/Truk' : 'Australia/Currie',
|
||||
'Pacific/Yap' : 'Australia/Currie',
|
||||
/*+10:30*/
|
||||
'Australia/LHI' : 'Australia/Lord_Howe',
|
||||
'Australia/Lord_Howe' : 'Australia/Lord_Howe',
|
||||
/*+11:00*/
|
||||
'Antarctica/Macquarie' : 'Antarctica/Macquarie',
|
||||
'Asia/Sakhalin' : 'Antarctica/Macquarie',
|
||||
'Asia/Vladivostok' : 'Antarctica/Macquarie',
|
||||
'Etc/GMT-11' : 'Antarctica/Macquarie',
|
||||
'Pacific/Efate' : 'Antarctica/Macquarie',
|
||||
'Pacific/Guadalcanal' : 'Antarctica/Macquarie',
|
||||
'Pacific/Kosrae' : 'Antarctica/Macquarie',
|
||||
'Pacific/Noumea' : 'Antarctica/Macquarie',
|
||||
'Pacific/Pohnpei' : 'Antarctica/Macquarie',
|
||||
'Pacific/Ponape' : 'Antarctica/Macquarie',
|
||||
'SST' : 'Antarctica/Macquarie',
|
||||
/*+11:30*/
|
||||
'Pacific/Norfolk' : 'Pacific/Norfolk',
|
||||
/*+12:00*/
|
||||
'Antarctica/McMurdo' : 'Antarctica/McMurdo',
|
||||
'Antarctica/South_Pole' : 'Antarctica/McMurdo',
|
||||
'Asia/Anadyr' : 'Antarctica/McMurdo',
|
||||
'Asia/Kamchatka' : 'Antarctica/McMurdo',
|
||||
'Asia/Magadan' : 'Antarctica/McMurdo',
|
||||
'Etc/GMT-12' : 'Antarctica/McMurdo',
|
||||
'Kwajalein' : 'Antarctica/McMurdo',
|
||||
'NST' : 'Antarctica/McMurdo',
|
||||
'NZ' : 'Antarctica/McMurdo',
|
||||
'Pacific/Auckland' : 'Antarctica/McMurdo',
|
||||
'Pacific/Fiji' : 'Antarctica/McMurdo',
|
||||
'Pacific/Funafuti' : 'Antarctica/McMurdo',
|
||||
'Pacific/Kwajalein' : 'Antarctica/McMurdo',
|
||||
'Pacific/Majuro' : 'Antarctica/McMurdo',
|
||||
'Pacific/Nauru' : 'Antarctica/McMurdo',
|
||||
'Pacific/Tarawa' : 'Antarctica/McMurdo',
|
||||
'Pacific/Wake' : 'Antarctica/McMurdo',
|
||||
'Pacific/Wallis' : 'Antarctica/McMurdo',
|
||||
/*+13:00*/
|
||||
'Etc/GMT-13' : 'Pacific/Enderbury',
|
||||
'MIT' : 'Pacific/Enderbury',
|
||||
'Pacific/Apia' : 'Pacific/Enderbury',
|
||||
'Pacific/Enderbury' : 'Pacific/Enderbury',
|
||||
'Pacific/Tongatapu' : 'Pacific/Enderbury',
|
||||
/*+14:00*/
|
||||
'Etc/GMT-14' : 'Pacific/Kiritimati',
|
||||
'Pacific/Fakaofo' : 'Pacific/Kiritimati',
|
||||
'Pacific/Kiritimati' : 'Pacific/Kiritimati'
|
||||
},
|
||||
|
||||
/* return unmapped timezone... */
|
||||
|
@ -66,7 +66,7 @@ class ICal {
|
||||
continue;
|
||||
}
|
||||
|
||||
list($keyword, $props, $value) = $add;
|
||||
list($keyword, $prop, $propvalue, $value) = $add;
|
||||
|
||||
switch ($line) {
|
||||
// http://www.kanzaki.com/docs/ical/vtodo.html
|
||||
@ -99,7 +99,7 @@ class ICal {
|
||||
$type = "VCALENDAR";
|
||||
break;
|
||||
default:
|
||||
$this->addCalendarComponentWithKeyAndValue($type, $keyword, $value, $props);
|
||||
$this->addCalendarComponentWithKeyAndValue($type, $keyword, $value, $prop, $propvalue);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -116,14 +116,14 @@ class ICal {
|
||||
*
|
||||
* @return {None}
|
||||
*/
|
||||
public function addCalendarComponentWithKeyAndValue($component, $keyword, $value, $props = false) {
|
||||
public function addCalendarComponentWithKeyAndValue($component, $keyword, $value, $prop = false, $propvalue = false) {
|
||||
if ($keyword == false) { // multiline value
|
||||
$keyword = $this->last_keyword;
|
||||
|
||||
switch ($component) {
|
||||
case 'VEVENT':
|
||||
if (stristr($keyword, "DTSTART") or stristr($keyword, "DTEND")) {
|
||||
$ts = $this->iCalDateToUnixTimestamp($value, $props);
|
||||
$ts = $this->iCalDateToUnixTimestamp($value, $prop, $propvalue);
|
||||
$value = $ts * 1000;
|
||||
}
|
||||
$value = str_replace("\\n", "\n", $value);
|
||||
@ -155,7 +155,7 @@ class ICal {
|
||||
break;
|
||||
case "VEVENT":
|
||||
if (stristr($keyword, "DTSTART") or stristr($keyword, "DTEND")) {
|
||||
$ts = $this->iCalDateToUnixTimestamp($value, $props);
|
||||
$ts = $this->iCalDateToUnixTimestamp($value, $prop, $propvalue);
|
||||
$value = $ts * 1000;
|
||||
}
|
||||
$value = str_replace("\\n", "\n", $value);
|
||||
@ -176,13 +176,13 @@ class ICal {
|
||||
* @return {array} array("VCALENDAR", "Begin", "Optional Props")
|
||||
*/
|
||||
public function keyValueFromString($text) {
|
||||
preg_match("/(^[^a-z:;]+)[;a-zA-Z]*[=]*([a-zA-Z\/\"\'\.\s]*)[:]([\w\W]*)/", $text, $matches);
|
||||
preg_match("/(^[^a-z:;]+)([;a-zA-Z]*)[=]*([a-zA-Z\/\"\'\.\s]*)[:]([\w\W]*)/", $text, $matches);
|
||||
|
||||
if (count($matches) == 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$matches = array_splice($matches, 1, 3);
|
||||
$matches = array_splice($matches, 1, 4);
|
||||
return $matches;
|
||||
}
|
||||
|
||||
@ -194,12 +194,17 @@ class ICal {
|
||||
*
|
||||
* @return {int}
|
||||
*/
|
||||
public function iCalDateToUnixTimestamp($icalDate, $timezone) {
|
||||
public function iCalDateToUnixTimestamp($icalDate, $prop, $propvalue) {
|
||||
|
||||
if($timezone) {
|
||||
$timezone = str_replace('"', '', $timezone);
|
||||
$timezone = false;
|
||||
|
||||
if($prop) {
|
||||
$pos = strpos("TZIDtzid", $prop);
|
||||
if($pos !== false && $propvalue) {
|
||||
$timezone = str_replace('"', '', $propvalue);
|
||||
$timezone = str_replace('\'', '', $timezone);
|
||||
}
|
||||
}
|
||||
|
||||
/* timestring format */
|
||||
$utc = strpos("zZ",substr($icalDate, -1)) === false ? false : true;
|
||||
|
Loading…
Reference in New Issue
Block a user