Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

imported 1.2.8

  • Loading branch information...
commit e17fc9f18f8a02a117b63407007fbe84bfd1a79c 1 parent a61dc5c
@kohsuke authored
View
9 Changes
@@ -1,3 +1,12 @@
+1.2.8 Apr 13th 2012
+ - Fix: Close the database file without exceptions whether it is
+ open(STANDARD) or not(MEMORY_CACHE) in conjunction with the
+ CHECK_CACHE option. (Lorenzo Crosby)
+1.2.7 Apr 10th 2012
+ - Update timezones ( Boris Zentner )
+ - Update FIPS codes 20120402 ( Boris Zentner )
+1.2.6 Mar 28th 2012
+ - Update country codes, FIPS codes and timezone ( Boris Zentner )
1.2.5 Aug 23th 2011
- Fix small buffer issue when java tries to read over the EOF ( Boris Zentner )
- Add support for new database types NETSPEED_EDITION_REV1_V6,
View
3  admin/generate_timeZone.pl
@@ -29,7 +29,8 @@ END
while ($str = <FILE>) {
$str =~ s!\s*$!!;
- my ($country,$region,$timezone) = split("\t",$str);
+ my ($country,$region,$timezone) = split(/\t/,$str);
+ die "Wrong timezone\n" unless $timezone;
if ($country ne $old_country) {
if ($had_region) {
print " }\n";
View
126 source/com/maxmind/geoip/LookupService.java
@@ -129,78 +129,61 @@
private static final HashMap hashmapcountryCodetoindex = new HashMap(512);
private static final HashMap hashmapcountryNametoindex = new HashMap(512);
private static final String[] countryCode = {
- "--","AP","EU","AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR",
- "AS","AT","AU","AW","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ",
- "BM","BN","BO","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF",
- "CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CX","CY","CZ",
- "DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI",
- "FJ","FK","FM","FO","FR","FX","GA","GB","GD","GE","GF","GH","GI","GL",
- "GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR",
- "HT","HU","ID","IE","IL","IN","IO","IQ","IR","IS","IT","JM","JO","JP",
- "KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC",
- "LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","MG","MH","MK",
- "ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY",
- "MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM",
- "PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY",
- "QA","RE","RO","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ",
- "SK","SL","SM","SN","SO","SR","ST","SV","SY","SZ","TC","TD","TF","TG",
- "TH","TJ","TK","TM","TN","TO","TL","TR","TT","TV","TW","TZ","UA","UG",
- "UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE",
- "YT","RS","ZA","ZM","ME","ZW","A1","A2","O1","AX","GG","IM","JE","BL",
- "MF"};
+ "--","AP","EU","AD","AE","AF","AG","AI","AL","AM","CW",
+ "AO","AQ","AR","AS","AT","AU","AW","AZ","BA","BB",
+ "BD","BE","BF","BG","BH","BI","BJ","BM","BN","BO",
+ "BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD",
+ "CF","CG","CH","CI","CK","CL","CM","CN","CO","CR",
+ "CU","CV","CX","CY","CZ","DE","DJ","DK","DM","DO",
+ "DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ",
+ "FK","FM","FO","FR","SX","GA","GB","GD","GE","GF",
+ "GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT",
+ "GU","GW","GY","HK","HM","HN","HR","HT","HU","ID",
+ "IE","IL","IN","IO","IQ","IR","IS","IT","JM","JO",
+ "JP","KE","KG","KH","KI","KM","KN","KP","KR","KW",
+ "KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT",
+ "LU","LV","LY","MA","MC","MD","MG","MH","MK","ML",
+ "MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV",
+ "MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI",
+ "NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF",
+ "PG","PH","PK","PL","PM","PN","PR","PS","PT","PW",
+ "PY","QA","RE","RO","RU","RW","SA","SB","SC","SD",
+ "SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO",
+ "SR","ST","SV","SY","SZ","TC","TD","TF","TG","TH",
+ "TJ","TK","TM","TN","TO","TL","TR","TT","TV","TW",
+ "TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE",
+ "VG","VI","VN","VU","WF","WS","YE","YT","RS","ZA",
+ "ZM","ME","ZW","A1","A2","O1","AX","GG","IM","JE",
+ "BL","MF", "BQ"};
private static final String[] countryName = {
- "N/A","Asia/Pacific Region","Europe","Andorra","United Arab Emirates",
- "Afghanistan","Antigua and Barbuda","Anguilla","Albania","Armenia",
- "Netherlands Antilles","Angola","Antarctica","Argentina","American Samoa",
- "Austria","Australia","Aruba","Azerbaijan","Bosnia and Herzegovina",
- "Barbados","Bangladesh","Belgium","Burkina Faso","Bulgaria","Bahrain",
- "Burundi","Benin","Bermuda","Brunei Darussalam","Bolivia","Brazil","Bahamas",
- "Bhutan","Bouvet Island","Botswana","Belarus","Belize","Canada",
- "Cocos (Keeling) Islands","Congo, The Democratic Republic of the",
- "Central African Republic","Congo","Switzerland","Cote D'Ivoire",
- "Cook Islands","Chile","Cameroon","China","Colombia","Costa Rica","Cuba",
- "Cape Verde","Christmas Island","Cyprus","Czech Republic","Germany",
- "Djibouti","Denmark","Dominica","Dominican Republic","Algeria","Ecuador",
- "Estonia","Egypt","Western Sahara","Eritrea","Spain","Ethiopia","Finland",
- "Fiji","Falkland Islands (Malvinas)","Micronesia, Federated States of",
- "Faroe Islands","France","France, Metropolitan","Gabon","United Kingdom",
- "Grenada","Georgia","French Guiana","Ghana","Gibraltar","Greenland","Gambia",
- "Guinea","Guadeloupe","Equatorial Guinea","Greece",
- "South Georgia and the South Sandwich Islands","Guatemala","Guam",
- "Guinea-Bissau","Guyana","Hong Kong","Heard Island and McDonald Islands",
- "Honduras","Croatia","Haiti","Hungary","Indonesia","Ireland","Israel","India",
- "British Indian Ocean Territory","Iraq","Iran, Islamic Republic of",
- "Iceland","Italy","Jamaica","Jordan","Japan","Kenya","Kyrgyzstan","Cambodia",
- "Kiribati","Comoros","Saint Kitts and Nevis",
- "Korea, Democratic People's Republic of","Korea, Republic of","Kuwait",
- "Cayman Islands","Kazakhstan","Lao People's Democratic Republic","Lebanon",
- "Saint Lucia","Liechtenstein","Sri Lanka","Liberia","Lesotho","Lithuania",
- "Luxembourg","Latvia","Libyan Arab Jamahiriya","Morocco","Monaco",
- "Moldova, Republic of","Madagascar","Marshall Islands",
- "Macedonia","Mali","Myanmar","Mongolia",
- "Macau","Northern Mariana Islands","Martinique","Mauritania","Montserrat",
- "Malta","Mauritius","Maldives","Malawi","Mexico","Malaysia","Mozambique",
- "Namibia","New Caledonia","Niger","Norfolk Island","Nigeria","Nicaragua",
- "Netherlands","Norway","Nepal","Nauru","Niue","New Zealand","Oman","Panama",
- "Peru","French Polynesia","Papua New Guinea","Philippines","Pakistan",
- "Poland","Saint Pierre and Miquelon","Pitcairn Islands","Puerto Rico","" +
- "Palestinian Territory","Portugal","Palau","Paraguay","Qatar",
- "Reunion","Romania","Russian Federation","Rwanda","Saudi Arabia",
- "Solomon Islands","Seychelles","Sudan","Sweden","Singapore","Saint Helena",
- "Slovenia","Svalbard and Jan Mayen","Slovakia","Sierra Leone","San Marino",
- "Senegal","Somalia","Suriname","Sao Tome and Principe","El Salvador",
- "Syrian Arab Republic","Swaziland","Turks and Caicos Islands","Chad",
- "French Southern Territories","Togo","Thailand","Tajikistan","Tokelau",
- "Turkmenistan","Tunisia","Tonga","Timor-Leste","Turkey","Trinidad and Tobago",
- "Tuvalu","Taiwan","Tanzania, United Republic of","Ukraine","Uganda",
- "United States Minor Outlying Islands","United States","Uruguay","Uzbekistan",
- "Holy See (Vatican City State)","Saint Vincent and the Grenadines",
- "Venezuela","Virgin Islands, British","Virgin Islands, U.S.","Vietnam",
- "Vanuatu","Wallis and Futuna","Samoa","Yemen","Mayotte","Serbia",
- "South Africa","Zambia","Montenegro","Zimbabwe","Anonymous Proxy",
- "Satellite Provider","Other","Aland Islands","Guernsey","Isle of Man","Jersey",
- "Saint Barthelemy","Saint Martin"};
+ "N/A","Asia/Pacific Region","Europe","Andorra","United Arab Emirates","Afghanistan","Antigua and Barbuda","Anguilla","Albania","Armenia","Curacao",
+ "Angola","Antarctica","Argentina","American Samoa","Austria","Australia","Aruba","Azerbaijan","Bosnia and Herzegovina","Barbados",
+ "Bangladesh","Belgium","Burkina Faso","Bulgaria","Bahrain","Burundi","Benin","Bermuda","Brunei Darussalam","Bolivia",
+ "Brazil","Bahamas","Bhutan","Bouvet Island","Botswana","Belarus","Belize","Canada","Cocos (Keeling) Islands","Congo, The Democratic Republic of the",
+ "Central African Republic","Congo","Switzerland","Cote D'Ivoire","Cook Islands","Chile","Cameroon","China","Colombia","Costa Rica",
+ "Cuba","Cape Verde","Christmas Island","Cyprus","Czech Republic","Germany","Djibouti","Denmark","Dominica","Dominican Republic",
+ "Algeria","Ecuador","Estonia","Egypt","Western Sahara","Eritrea","Spain","Ethiopia","Finland","Fiji",
+ "Falkland Islands (Malvinas)","Micronesia, Federated States of","Faroe Islands","France","Sint Maarten (Dutch part)","Gabon","United Kingdom","Grenada","Georgia","French Guiana",
+ "Ghana","Gibraltar","Greenland","Gambia","Guinea","Guadeloupe","Equatorial Guinea","Greece","South Georgia and the South Sandwich Islands","Guatemala",
+ "Guam","Guinea-Bissau","Guyana","Hong Kong","Heard Island and McDonald Islands","Honduras","Croatia","Haiti","Hungary","Indonesia",
+ "Ireland","Israel","India","British Indian Ocean Territory","Iraq","Iran, Islamic Republic of","Iceland","Italy","Jamaica","Jordan",
+ "Japan","Kenya","Kyrgyzstan","Cambodia","Kiribati","Comoros","Saint Kitts and Nevis","Korea, Democratic People's Republic of","Korea, Republic of","Kuwait",
+ "Cayman Islands","Kazakhstan","Lao People's Democratic Republic","Lebanon","Saint Lucia","Liechtenstein","Sri Lanka","Liberia","Lesotho","Lithuania",
+ "Luxembourg","Latvia","Libya","Morocco","Monaco","Moldova, Republic of","Madagascar","Marshall Islands","Macedonia","Mali",
+ "Myanmar","Mongolia","Macau","Northern Mariana Islands","Martinique","Mauritania","Montserrat","Malta","Mauritius","Maldives",
+ "Malawi","Mexico","Malaysia","Mozambique","Namibia","New Caledonia","Niger","Norfolk Island","Nigeria","Nicaragua",
+ "Netherlands","Norway","Nepal","Nauru","Niue","New Zealand","Oman","Panama","Peru","French Polynesia",
+ "Papua New Guinea","Philippines","Pakistan","Poland","Saint Pierre and Miquelon","Pitcairn Islands","Puerto Rico","Palestinian Territory","Portugal","Palau",
+ "Paraguay","Qatar","Reunion","Romania","Russian Federation","Rwanda","Saudi Arabia","Solomon Islands","Seychelles","Sudan",
+ "Sweden","Singapore","Saint Helena","Slovenia","Svalbard and Jan Mayen","Slovakia","Sierra Leone","San Marino","Senegal","Somalia","Suriname",
+ "Sao Tome and Principe","El Salvador","Syrian Arab Republic","Swaziland","Turks and Caicos Islands","Chad","French Southern Territories","Togo","Thailand",
+ "Tajikistan","Tokelau","Turkmenistan","Tunisia","Tonga","Timor-Leste","Turkey","Trinidad and Tobago","Tuvalu","Taiwan",
+ "Tanzania, United Republic of","Ukraine","Uganda","United States Minor Outlying Islands","United States","Uruguay","Uzbekistan","Holy See (Vatican City State)","Saint Vincent and the Grenadines","Venezuela",
+ "Virgin Islands, British","Virgin Islands, U.S.","Vietnam","Vanuatu","Wallis and Futuna","Samoa","Yemen","Mayotte","Serbia","South Africa",
+ "Zambia","Montenegro","Zimbabwe","Anonymous Proxy","Satellite Provider","Other","Aland Islands","Guernsey","Isle of Man","Jersey",
+ "Saint Barthelemy","Saint Martin", "Bonaire, Saint Eustatius and Saba"
+ };
/* init the hashmap once at startup time */
@@ -406,7 +389,6 @@ else if (databaseType == DatabaseInfo.CITY_EDITION_REV0 ||
} else {
index_cache = null;
}
-
}
/**
@@ -592,7 +574,7 @@ synchronized void _check_mtime(){
if (t != mtime){
/* GeoIP Database file updated */
/* refresh filehandle */
- file.close();
+ close();
file = new RandomAccessFile(databaseFile,"r");
databaseInfo = null;
init();
View
127 source/com/maxmind/geoip/regionName.java
@@ -1031,6 +1031,12 @@ else if ( ( ((region_code.charAt(0) >= 65) && (region_code.charAt(0) < (65
case 12:
name = "Vlaams-Brabant";
break;
+ case 13:
+ name = "Flanders";
+ break;
+ case 14:
+ name = "Wallonia";
+ break;
}
}
if (country_code.equals("BF") == true) {
@@ -2272,15 +2278,6 @@ else if ( ( ((region_code.charAt(0) >= 65) && (region_code.charAt(0) < (65
case 4:
name = "Atlantico";
break;
- case 5:
- name = "Bolivar Department";
- break;
- case 6:
- name = "Boyaca Department";
- break;
- case 7:
- name = "Caldas Department";
- break;
case 8:
name = "Caqueta";
break;
@@ -2308,9 +2305,6 @@ else if ( ( ((region_code.charAt(0) >= 65) && (region_code.charAt(0) < (65
case 17:
name = "La Guajira";
break;
- case 18:
- name = "Magdalena Department";
- break;
case 19:
name = "Meta";
break;
@@ -5149,18 +5143,12 @@ else if ( ( ((region_code.charAt(0) >= 65) && (region_code.charAt(0) < (65
case 5:
name = "Jambi";
break;
- case 6:
- name = "Jawa Barat";
- break;
case 7:
name = "Jawa Tengah";
break;
case 8:
name = "Jawa Timur";
break;
- case 9:
- name = "Papua";
- break;
case 10:
name = "Yogyakarta";
break;
@@ -5179,36 +5167,21 @@ else if ( ( ((region_code.charAt(0) >= 65) && (region_code.charAt(0) < (65
case 15:
name = "Lampung";
break;
- case 16:
- name = "Maluku";
- break;
case 17:
name = "Nusa Tenggara Barat";
break;
case 18:
name = "Nusa Tenggara Timur";
break;
- case 19:
- name = "Riau";
- break;
- case 20:
- name = "Sulawesi Selatan";
- break;
case 21:
name = "Sulawesi Tengah";
break;
case 22:
name = "Sulawesi Tenggara";
break;
- case 23:
- name = "Sulawesi Utara";
- break;
case 24:
name = "Sumatera Barat";
break;
- case 25:
- name = "Sumatera Selatan";
- break;
case 26:
name = "Sumatera Utara";
break;
@@ -5845,30 +5818,39 @@ else if ( ( ((region_code.charAt(0) >= 65) && (region_code.charAt(0) < (65
case 2:
name = "Al Balqa'";
break;
- case 7:
- name = "Ma";
- break;
case 9:
name = "Al Karak";
break;
- case 10:
- name = "Al Mafraq";
- break;
- case 11:
- name = "Amman Governorate";
- break;
case 12:
name = "At Tafilah";
break;
- case 13:
- name = "Az Zarqa";
- break;
- case 14:
- name = "Irbid";
+ case 15:
+ name = "Al Mafraq";
break;
case 16:
name = "Amman";
break;
+ case 17:
+ name = "Az Zaraqa";
+ break;
+ case 18:
+ name = "Irbid";
+ break;
+ case 19:
+ name = "Ma'an";
+ break;
+ case 20:
+ name = "Ajlun";
+ break;
+ case 21:
+ name = "Al Aqabah";
+ break;
+ case 22:
+ name = "Jarash";
+ break;
+ case 23:
+ name = "Madaba";
+ break;
}
}
if (country_code.equals("JP") == true) {
@@ -7137,6 +7119,9 @@ else if ( ( ((region_code.charAt(0) >= 65) && (region_code.charAt(0) < (65
case 81:
name = "Ocnita";
break;
+ case 82:
+ name = "Orhei";
+ break;
case 83:
name = "Rezina";
break;
@@ -8503,9 +8488,6 @@ else if ( ( ((region_code.charAt(0) >= 65) && (region_code.charAt(0) < (65
case 7:
name = "Noord-Holland";
break;
- case 8:
- name = "Overijssel";
- break;
case 9:
name = "Utrecht";
break;
@@ -10009,8 +9991,11 @@ else if ( ( ((region_code.charAt(0) >= 65) && (region_code.charAt(0) < (65
case 91:
name = "Krasnoyarskiy Kray";
break;
- case 942:
- name = "Chechnya Republic";
+ case 92:
+ name = "Kamchatskiy Kray";
+ break;
+ case 93:
+ name = "Zabaykal'skiy Kray";
break;
}
}
@@ -10050,9 +10035,6 @@ else if ( ( ((region_code.charAt(0) >= 65) && (region_code.charAt(0) < (65
case 2:
name = "Al Bahah";
break;
- case 3:
- name = "Al Jawf";
- break;
case 5:
name = "Al Madinah";
break;
@@ -10062,12 +10044,12 @@ else if ( ( ((region_code.charAt(0) >= 65) && (region_code.charAt(0) < (65
case 8:
name = "Al Qasim";
break;
- case 9:
- name = "Al Qurayyat";
- break;
case 10:
name = "Ar Riyad";
break;
+ case 11:
+ name = "Asir Province";
+ break;
case 13:
name = "Ha'il";
break;
@@ -12635,25 +12617,46 @@ else if ( ( ((region_code.charAt(0) >= 65) && (region_code.charAt(0) < (65
name = "Shabwah";
break;
case 6:
- name = "Al Ghaydah";
+ name = "Lahij";
+ break;
+ case 7:
+ name = "Al Bayda'";
break;
case 8:
name = "Al Hudaydah";
break;
+ case 9:
+ name = "Al Jawf";
+ break;
case 10:
name = "Al Mahwit";
break;
case 11:
name = "Dhamar";
break;
+ case 12:
+ name = "Hajjah";
+ break;
+ case 13:
+ name = "Ibb";
+ break;
case 14:
name = "Ma'rib";
break;
case 15:
- name = "Sa";
+ name = "Sa'dah";
break;
case 16:
- name = "San";
+ name = "San'a'";
+ break;
+ case 17:
+ name = "Taizz";
+ break;
+ case 18:
+ name = "Ad Dali";
+ break;
+ case 19:
+ name = "Amran";
break;
case 20:
name = "Al Bayda'";
@@ -12671,7 +12674,7 @@ else if ( ( ((region_code.charAt(0) >= 65) && (region_code.charAt(0) < (65
name = "Lahij";
break;
case 25:
- name = "Ta";
+ name = "Taizz";
break;
}
}
View
1,356 source/com/maxmind/geoip/timeZone.java
@@ -9,598 +9,26 @@ static public String timeZoneByCountryAndRegion(String country,String region) {
if (region == null) {
region = "";
}
- if (country.equals("US") == true) {
- if (region.equals("AL") == true) {
- timezone = "America/Chicago";
- } else if (region.equals("AK") == true) {
- timezone = "America/Anchorage";
- } else if (region.equals("AZ") == true) {
- timezone = "America/Phoenix";
- } else if (region.equals("AR") == true) {
- timezone = "America/Chicago";
- } else if (region.equals("CA") == true) {
- timezone = "America/Los_Angeles";
- } else if (region.equals("CO") == true) {
- timezone = "America/Denver";
- } else if (region.equals("CT") == true) {
- timezone = "America/New_York";
- } else if (region.equals("DE") == true) {
- timezone = "America/New_York";
- } else if (region.equals("DC") == true) {
- timezone = "America/New_York";
- } else if (region.equals("FL") == true) {
- timezone = "America/New_York";
- } else if (region.equals("GA") == true) {
- timezone = "America/New_York";
- } else if (region.equals("HI") == true) {
- timezone = "Pacific/Honolulu";
- } else if (region.equals("ID") == true) {
- timezone = "America/Denver";
- } else if (region.equals("IL") == true) {
- timezone = "America/Chicago";
- } else if (region.equals("IN") == true) {
- timezone = "America/Indianapolis";
- } else if (region.equals("IA") == true) {
- timezone = "America/Chicago";
- } else if (region.equals("KS") == true) {
- timezone = "America/Chicago";
- } else if (region.equals("KY") == true) {
- timezone = "America/New_York";
- } else if (region.equals("LA") == true) {
- timezone = "America/Chicago";
- } else if (region.equals("ME") == true) {
- timezone = "America/New_York";
- } else if (region.equals("MD") == true) {
- timezone = "America/New_York";
- } else if (region.equals("MA") == true) {
- timezone = "America/New_York";
- } else if (region.equals("MI") == true) {
- timezone = "America/New_York";
- } else if (region.equals("MN") == true) {
- timezone = "America/Chicago";
- } else if (region.equals("MS") == true) {
- timezone = "America/Chicago";
- } else if (region.equals("MO") == true) {
- timezone = "America/Chicago";
- } else if (region.equals("MT") == true) {
- timezone = "America/Denver";
- } else if (region.equals("NE") == true) {
- timezone = "America/Chicago";
- } else if (region.equals("NV") == true) {
- timezone = "America/Los_Angeles";
- } else if (region.equals("NH") == true) {
- timezone = "America/New_York";
- } else if (region.equals("NJ") == true) {
- timezone = "America/New_York";
- } else if (region.equals("NM") == true) {
- timezone = "America/Denver";
- } else if (region.equals("NY") == true) {
- timezone = "America/New_York";
- } else if (region.equals("NC") == true) {
- timezone = "America/New_York";
- } else if (region.equals("ND") == true) {
- timezone = "America/Chicago";
- } else if (region.equals("OH") == true) {
- timezone = "America/New_York";
- } else if (region.equals("OK") == true) {
- timezone = "America/Chicago";
- } else if (region.equals("OR") == true) {
- timezone = "America/Los_Angeles";
- } else if (region.equals("PA") == true) {
- timezone = "America/New_York";
- } else if (region.equals("RI") == true) {
- timezone = "America/New_York";
- } else if (region.equals("SC") == true) {
- timezone = "America/New_York";
- } else if (region.equals("SD") == true) {
- timezone = "America/Chicago";
- } else if (region.equals("TN") == true) {
- timezone = "America/Chicago";
- } else if (region.equals("TX") == true) {
- timezone = "America/Chicago";
- } else if (region.equals("UT") == true) {
- timezone = "America/Denver";
- } else if (region.equals("VT") == true) {
- timezone = "America/New_York";
- } else if (region.equals("VA") == true) {
- timezone = "America/New_York";
- } else if (region.equals("WA") == true) {
- timezone = "America/Los_Angeles";
- } else if (region.equals("WV") == true) {
- timezone = "America/New_York";
- } else if (region.equals("WI") == true) {
- timezone = "America/Chicago";
- } else if (region.equals("WY") == true) {
- timezone = "America/Denver";
- }
- } else if (country.equals("CA") == true) {
- if (region.equals("AB") == true) {
- timezone = "America/Edmonton";
- } else if (region.equals("BC") == true) {
- timezone = "America/Vancouver";
- } else if (region.equals("MB") == true) {
- timezone = "America/Winnipeg";
- } else if (region.equals("NB") == true) {
- timezone = "America/Halifax";
- } else if (region.equals("NL") == true) {
- timezone = "America/St_Johns";
- } else if (region.equals("NT") == true) {
- timezone = "America/Yellowknife";
- } else if (region.equals("NS") == true) {
- timezone = "America/Halifax";
- } else if (region.equals("NU") == true) {
- timezone = "America/Rankin_Inlet";
- } else if (region.equals("ON") == true) {
- timezone = "America/Rainy_River";
- } else if (region.equals("PE") == true) {
- timezone = "America/Halifax";
- } else if (region.equals("QC") == true) {
- timezone = "America/Montreal";
- } else if (region.equals("SK") == true) {
- timezone = "America/Regina";
- } else if (region.equals("YT") == true) {
- timezone = "America/Whitehorse";
- }
- } else if (country.equals("AU") == true) {
- if (region.equals("01") == true) {
- timezone = "Australia/Canberra";
- } else if (region.equals("02") == true) {
- timezone = "Australia/NSW";
- } else if (region.equals("03") == true) {
- timezone = "Australia/North";
- } else if (region.equals("04") == true) {
- timezone = "Australia/Queensland";
- } else if (region.equals("05") == true) {
- timezone = "Australia/South";
- } else if (region.equals("06") == true) {
- timezone = "Australia/Tasmania";
- } else if (region.equals("07") == true) {
- timezone = "Australia/Victoria";
- } else if (region.equals("08") == true) {
- timezone = "Australia/West";
- }
- } else if (country.equals("AS") == true) {
- timezone = "US/Samoa";
- } else if (country.equals("CI") == true) {
- timezone = "Africa/Abidjan";
- } else if (country.equals("GH") == true) {
- timezone = "Africa/Accra";
- } else if (country.equals("DZ") == true) {
- timezone = "Africa/Algiers";
- } else if (country.equals("ER") == true) {
- timezone = "Africa/Asmera";
- } else if (country.equals("ML") == true) {
- timezone = "Africa/Bamako";
- } else if (country.equals("CF") == true) {
- timezone = "Africa/Bangui";
- } else if (country.equals("GM") == true) {
- timezone = "Africa/Banjul";
- } else if (country.equals("GW") == true) {
- timezone = "Africa/Bissau";
- } else if (country.equals("CG") == true) {
- timezone = "Africa/Brazzaville";
- } else if (country.equals("BI") == true) {
- timezone = "Africa/Bujumbura";
- } else if (country.equals("EG") == true) {
- timezone = "Africa/Cairo";
- } else if (country.equals("MA") == true) {
- timezone = "Africa/Casablanca";
- } else if (country.equals("GN") == true) {
- timezone = "Africa/Conakry";
- } else if (country.equals("SN") == true) {
- timezone = "Africa/Dakar";
- } else if (country.equals("DJ") == true) {
- timezone = "Africa/Djibouti";
- } else if (country.equals("SL") == true) {
- timezone = "Africa/Freetown";
- } else if (country.equals("BW") == true) {
- timezone = "Africa/Gaborone";
- } else if (country.equals("ZW") == true) {
- timezone = "Africa/Harare";
- } else if (country.equals("ZA") == true) {
- timezone = "Africa/Johannesburg";
- } else if (country.equals("UG") == true) {
- timezone = "Africa/Kampala";
- } else if (country.equals("SD") == true) {
- timezone = "Africa/Khartoum";
- } else if (country.equals("RW") == true) {
- timezone = "Africa/Kigali";
- } else if (country.equals("NG") == true) {
- timezone = "Africa/Lagos";
- } else if (country.equals("GA") == true) {
- timezone = "Africa/Libreville";
- } else if (country.equals("TG") == true) {
- timezone = "Africa/Lome";
- } else if (country.equals("AO") == true) {
- timezone = "Africa/Luanda";
- } else if (country.equals("ZM") == true) {
- timezone = "Africa/Lusaka";
- } else if (country.equals("GQ") == true) {
- timezone = "Africa/Malabo";
- } else if (country.equals("MZ") == true) {
- timezone = "Africa/Maputo";
- } else if (country.equals("LS") == true) {
- timezone = "Africa/Maseru";
- } else if (country.equals("SZ") == true) {
- timezone = "Africa/Mbabane";
- } else if (country.equals("SO") == true) {
- timezone = "Africa/Mogadishu";
- } else if (country.equals("LR") == true) {
- timezone = "Africa/Monrovia";
- } else if (country.equals("KE") == true) {
- timezone = "Africa/Nairobi";
- } else if (country.equals("TD") == true) {
- timezone = "Africa/Ndjamena";
- } else if (country.equals("NE") == true) {
- timezone = "Africa/Niamey";
- } else if (country.equals("MR") == true) {
- timezone = "Africa/Nouakchott";
- } else if (country.equals("BF") == true) {
- timezone = "Africa/Ouagadougou";
- } else if (country.equals("ST") == true) {
- timezone = "Africa/Sao_Tome";
- } else if (country.equals("LY") == true) {
- timezone = "Africa/Tripoli";
- } else if (country.equals("TN") == true) {
- timezone = "Africa/Tunis";
- } else if (country.equals("AI") == true) {
- timezone = "America/Anguilla";
- } else if (country.equals("AG") == true) {
- timezone = "America/Antigua";
- } else if (country.equals("AW") == true) {
- timezone = "America/Aruba";
- } else if (country.equals("BB") == true) {
- timezone = "America/Barbados";
- } else if (country.equals("BZ") == true) {
- timezone = "America/Belize";
- } else if (country.equals("CO") == true) {
- timezone = "America/Bogota";
- } else if (country.equals("VE") == true) {
- timezone = "America/Caracas";
- } else if (country.equals("KY") == true) {
- timezone = "America/Cayman";
- } else if (country.equals("CR") == true) {
- timezone = "America/Costa_Rica";
- } else if (country.equals("DM") == true) {
- timezone = "America/Dominica";
- } else if (country.equals("SV") == true) {
- timezone = "America/El_Salvador";
- } else if (country.equals("GD") == true) {
- timezone = "America/Grenada";
- } else if (country.equals("FR") == true) {
- timezone = "Europe/Paris";
- } else if (country.equals("GP") == true) {
- timezone = "America/Guadeloupe";
- } else if (country.equals("GT") == true) {
- timezone = "America/Guatemala";
- } else if (country.equals("GY") == true) {
- timezone = "America/Guyana";
- } else if (country.equals("CU") == true) {
- timezone = "America/Havana";
- } else if (country.equals("JM") == true) {
- timezone = "America/Jamaica";
- } else if (country.equals("BO") == true) {
- timezone = "America/La_Paz";
- } else if (country.equals("PE") == true) {
- timezone = "America/Lima";
- } else if (country.equals("NI") == true) {
- timezone = "America/Managua";
- } else if (country.equals("MQ") == true) {
- timezone = "America/Martinique";
- } else if (country.equals("UY") == true) {
- timezone = "America/Montevideo";
- } else if (country.equals("MS") == true) {
- timezone = "America/Montserrat";
- } else if (country.equals("BS") == true) {
- timezone = "America/Nassau";
- } else if (country.equals("PA") == true) {
- timezone = "America/Panama";
- } else if (country.equals("SR") == true) {
- timezone = "America/Paramaribo";
- } else if (country.equals("PR") == true) {
- timezone = "America/Puerto_Rico";
- } else if (country.equals("KN") == true) {
- timezone = "America/St_Kitts";
- } else if (country.equals("LC") == true) {
- timezone = "America/St_Lucia";
- } else if (country.equals("VC") == true) {
- timezone = "America/St_Vincent";
- } else if (country.equals("HN") == true) {
- timezone = "America/Tegucigalpa";
- } else if (country.equals("YE") == true) {
- timezone = "Asia/Aden";
- } else if (country.equals("JO") == true) {
- timezone = "Asia/Amman";
- } else if (country.equals("TM") == true) {
- timezone = "Asia/Ashgabat";
- } else if (country.equals("IQ") == true) {
- timezone = "Asia/Baghdad";
- } else if (country.equals("BH") == true) {
- timezone = "Asia/Bahrain";
- } else if (country.equals("AZ") == true) {
- timezone = "Asia/Baku";
- } else if (country.equals("TH") == true) {
- timezone = "Asia/Bangkok";
- } else if (country.equals("LB") == true) {
- timezone = "Asia/Beirut";
- } else if (country.equals("KG") == true) {
- timezone = "Asia/Bishkek";
- } else if (country.equals("BN") == true) {
- timezone = "Asia/Brunei";
- } else if (country.equals("IN") == true) {
- timezone = "Asia/Calcutta";
- } else if (country.equals("MN") == true) {
- timezone = "Asia/Choibalsan";
- } else if (country.equals("LK") == true) {
- timezone = "Asia/Colombo";
- } else if (country.equals("BD") == true) {
- timezone = "Asia/Dhaka";
- } else if (country.equals("AE") == true) {
- timezone = "Asia/Dubai";
- } else if (country.equals("TJ") == true) {
- timezone = "Asia/Dushanbe";
- } else if (country.equals("HK") == true) {
- timezone = "Asia/Hong_Kong";
- } else if (country.equals("TR") == true) {
- timezone = "Asia/Istanbul";
- } else if (country.equals("IL") == true) {
- timezone = "Asia/Jerusalem";
- } else if (country.equals("AF") == true) {
- timezone = "Asia/Kabul";
- } else if (country.equals("PK") == true) {
- timezone = "Asia/Karachi";
- } else if (country.equals("NP") == true) {
- timezone = "Asia/Katmandu";
- } else if (country.equals("KW") == true) {
- timezone = "Asia/Kuwait";
- } else if (country.equals("MO") == true) {
- timezone = "Asia/Macao";
- } else if (country.equals("PH") == true) {
- timezone = "Asia/Manila";
- } else if (country.equals("OM") == true) {
- timezone = "Asia/Muscat";
- } else if (country.equals("CY") == true) {
- timezone = "Asia/Nicosia";
- } else if (country.equals("KP") == true) {
- timezone = "Asia/Pyongyang";
- } else if (country.equals("QA") == true) {
- timezone = "Asia/Qatar";
- } else if (country.equals("MM") == true) {
- timezone = "Asia/Rangoon";
- } else if (country.equals("SA") == true) {
- timezone = "Asia/Riyadh";
- } else if (country.equals("KR") == true) {
- timezone = "Asia/Seoul";
- } else if (country.equals("SG") == true) {
- timezone = "Asia/Singapore";
- } else if (country.equals("TW") == true) {
- timezone = "Asia/Taipei";
- } else if (country.equals("GE") == true) {
- timezone = "Asia/Tbilisi";
- } else if (country.equals("BT") == true) {
- timezone = "Asia/Thimphu";
- } else if (country.equals("JP") == true) {
- timezone = "Asia/Tokyo";
- } else if (country.equals("LA") == true) {
- timezone = "Asia/Vientiane";
- } else if (country.equals("AM") == true) {
- timezone = "Asia/Yerevan";
- } else if (country.equals("BM") == true) {
- timezone = "Atlantic/Bermuda";
- } else if (country.equals("CV") == true) {
- timezone = "Atlantic/Cape_Verde";
- } else if (country.equals("FO") == true) {
- timezone = "Atlantic/Faeroe";
- } else if (country.equals("IS") == true) {
- timezone = "Atlantic/Reykjavik";
- } else if (country.equals("GS") == true) {
- timezone = "Atlantic/South_Georgia";
- } else if (country.equals("SH") == true) {
- timezone = "Atlantic/St_Helena";
- } else if (country.equals("CL") == true) {
- timezone = "Chile/Continental";
- } else if (country.equals("NL") == true) {
- timezone = "Europe/Amsterdam";
- } else if (country.equals("AD") == true) {
+ if (country.equals("AD") == true) {
timezone = "Europe/Andorra";
- } else if (country.equals("GR") == true) {
- timezone = "Europe/Athens";
- } else if (country.equals("YU") == true) {
- timezone = "Europe/Belgrade";
- } else if (country.equals("DE") == true) {
- timezone = "Europe/Berlin";
- } else if (country.equals("SK") == true) {
- timezone = "Europe/Bratislava";
- } else if (country.equals("BE") == true) {
- timezone = "Europe/Brussels";
- } else if (country.equals("RO") == true) {
- timezone = "Europe/Bucharest";
- } else if (country.equals("HU") == true) {
- timezone = "Europe/Budapest";
- } else if (country.equals("DK") == true) {
- timezone = "Europe/Copenhagen";
- } else if (country.equals("IE") == true) {
- timezone = "Europe/Dublin";
- } else if (country.equals("GI") == true) {
- timezone = "Europe/Gibraltar";
- } else if (country.equals("FI") == true) {
- timezone = "Europe/Helsinki";
- } else if (country.equals("SI") == true) {
- timezone = "Europe/Ljubljana";
- } else if (country.equals("GB") == true) {
- timezone = "Europe/London";
- } else if (country.equals("LU") == true) {
- timezone = "Europe/Luxembourg";
- } else if (country.equals("MT") == true) {
- timezone = "Europe/Malta";
- } else if (country.equals("BY") == true) {
- timezone = "Europe/Minsk";
- } else if (country.equals("MC") == true) {
- timezone = "Europe/Monaco";
- } else if (country.equals("NO") == true) {
- timezone = "Europe/Oslo";
- } else if (country.equals("CZ") == true) {
- timezone = "Europe/Prague";
- } else if (country.equals("LV") == true) {
- timezone = "Europe/Riga";
- } else if (country.equals("IT") == true) {
- timezone = "Europe/Rome";
- } else if (country.equals("SM") == true) {
- timezone = "Europe/San_Marino";
- } else if (country.equals("BA") == true) {
- timezone = "Europe/Sarajevo";
- } else if (country.equals("MK") == true) {
- timezone = "Europe/Skopje";
- } else if (country.equals("BG") == true) {
- timezone = "Europe/Sofia";
- } else if (country.equals("SE") == true) {
- timezone = "Europe/Stockholm";
- } else if (country.equals("EE") == true) {
- timezone = "Europe/Tallinn";
- } else if (country.equals("AL") == true) {
- timezone = "Europe/Tirane";
- } else if (country.equals("LI") == true) {
- timezone = "Europe/Vaduz";
- } else if (country.equals("VA") == true) {
- timezone = "Europe/Vatican";
- } else if (country.equals("AT") == true) {
- timezone = "Europe/Vienna";
- } else if (country.equals("LT") == true) {
- timezone = "Europe/Vilnius";
- } else if (country.equals("PL") == true) {
- timezone = "Europe/Warsaw";
- } else if (country.equals("HR") == true) {
- timezone = "Europe/Zagreb";
- } else if (country.equals("IR") == true) {
- timezone = "Asia/Tehran";
- } else if (country.equals("MG") == true) {
- timezone = "Indian/Antananarivo";
- } else if (country.equals("CX") == true) {
- timezone = "Indian/Christmas";
- } else if (country.equals("CC") == true) {
- timezone = "Indian/Cocos";
- } else if (country.equals("KM") == true) {
- timezone = "Indian/Comoro";
- } else if (country.equals("MV") == true) {
- timezone = "Indian/Maldives";
- } else if (country.equals("MU") == true) {
- timezone = "Indian/Mauritius";
- } else if (country.equals("YT") == true) {
- timezone = "Indian/Mayotte";
- } else if (country.equals("RE") == true) {
- timezone = "Indian/Reunion";
- } else if (country.equals("FJ") == true) {
- timezone = "Pacific/Fiji";
- } else if (country.equals("TV") == true) {
- timezone = "Pacific/Funafuti";
- } else if (country.equals("GU") == true) {
- timezone = "Pacific/Guam";
- } else if (country.equals("NR") == true) {
- timezone = "Pacific/Nauru";
- } else if (country.equals("NU") == true) {
- timezone = "Pacific/Niue";
- } else if (country.equals("NF") == true) {
- timezone = "Pacific/Norfolk";
- } else if (country.equals("PW") == true) {
- timezone = "Pacific/Palau";
- } else if (country.equals("PN") == true) {
- timezone = "Pacific/Pitcairn";
- } else if (country.equals("CK") == true) {
- timezone = "Pacific/Rarotonga";
- } else if (country.equals("WS") == true) {
- timezone = "Pacific/Samoa";
- } else if (country.equals("KI") == true) {
- timezone = "Pacific/Tarawa";
- } else if (country.equals("TO") == true) {
- timezone = "Pacific/Tongatapu";
- } else if (country.equals("WF") == true) {
- timezone = "Pacific/Wallis";
- } else if (country.equals("TZ") == true) {
- timezone = "Africa/Dar_es_Salaam";
- } else if (country.equals("VN") == true) {
- timezone = "Asia/Phnom_Penh";
- } else if (country.equals("KH") == true) {
- timezone = "Asia/Phnom_Penh";
- } else if (country.equals("CM") == true) {
- timezone = "Africa/Lagos";
- } else if (country.equals("DO") == true) {
- timezone = "America/Santo_Domingo";
- } else if (country.equals("ET") == true) {
- timezone = "Africa/Addis_Ababa";
- } else if (country.equals("FX") == true) {
- timezone = "Europe/Paris";
- } else if (country.equals("HT") == true) {
- timezone = "America/Port-au-Prince";
- } else if (country.equals("CH") == true) {
- timezone = "Europe/Zurich";
+ } else if (country.equals("AE") == true) {
+ timezone = "Asia/Dubai";
+ } else if (country.equals("AF") == true) {
+ timezone = "Asia/Kabul";
+ } else if (country.equals("AG") == true) {
+ timezone = "America/Antigua";
+ } else if (country.equals("AI") == true) {
+ timezone = "America/Anguilla";
+ } else if (country.equals("AL") == true) {
+ timezone = "Europe/Tirane";
+ } else if (country.equals("AM") == true) {
+ timezone = "Asia/Yerevan";
} else if (country.equals("AN") == true) {
timezone = "America/Curacao";
- } else if (country.equals("BJ") == true) {
- timezone = "Africa/Porto-Novo";
- } else if (country.equals("EH") == true) {
- timezone = "Africa/El_Aaiun";
- } else if (country.equals("FK") == true) {
- timezone = "Atlantic/Stanley";
- } else if (country.equals("GF") == true) {
- timezone = "America/Cayenne";
- } else if (country.equals("IO") == true) {
- timezone = "Indian/Chagos";
- } else if (country.equals("MD") == true) {
- timezone = "Europe/Chisinau";
- } else if (country.equals("MP") == true) {
- timezone = "Pacific/Saipan";
- } else if (country.equals("MW") == true) {
- timezone = "Africa/Blantyre";
- } else if (country.equals("NA") == true) {
- timezone = "Africa/Windhoek";
- } else if (country.equals("NC") == true) {
- timezone = "Pacific/Noumea";
- } else if (country.equals("PG") == true) {
- timezone = "Pacific/Port_Moresby";
- } else if (country.equals("PM") == true) {
- timezone = "America/Miquelon";
- } else if (country.equals("PS") == true) {
- timezone = "Asia/Gaza";
- } else if (country.equals("PY") == true) {
- timezone = "America/Asuncion";
- } else if (country.equals("SB") == true) {
- timezone = "Pacific/Guadalcanal";
- } else if (country.equals("SC") == true) {
- timezone = "Indian/Mahe";
- } else if (country.equals("SJ") == true) {
- timezone = "Arctic/Longyearbyen";
- } else if (country.equals("SY") == true) {
- timezone = "Asia/Damascus";
- } else if (country.equals("TC") == true) {
- timezone = "America/Grand_Turk";
- } else if (country.equals("TF") == true) {
- timezone = "Indian/Kerguelen";
- } else if (country.equals("TK") == true) {
- timezone = "Pacific/Fakaofo";
- } else if (country.equals("TT") == true) {
- timezone = "America/Port_of_Spain";
- } else if (country.equals("VG") == true) {
- timezone = "America/Tortola";
- } else if (country.equals("VI") == true) {
- timezone = "America/St_Thomas";
- } else if (country.equals("VU") == true) {
- timezone = "Pacific/Efate";
- } else if (country.equals("RS") == true) {
- timezone = "Europe/Belgrade";
- } else if (country.equals("ME") == true) {
- timezone = "Europe/Podgorica";
- } else if (country.equals("AX") == true) {
- timezone = "Europe/Mariehamn";
- } else if (country.equals("GG") == true) {
- timezone = "Europe/Guernsey";
- } else if (country.equals("IM") == true) {
- timezone = "Europe/Isle_of_Man";
- } else if (country.equals("JE") == true) {
- timezone = "Europe/Jersey";
- } else if (country.equals("BL") == true) {
- timezone = "America/St_Barthelemy";
- } else if (country.equals("MF") == true) {
- timezone = "America/Marigot";
+ } else if (country.equals("AO") == true) {
+ timezone = "Africa/Luanda";
+ } else if (country.equals("AQ") == true) {
+ timezone = "Antarctica/South_Pole";
} else if (country.equals("AR") == true) {
if (region.equals("01") == true) {
timezone = "America/Argentina/Buenos_Aires";
@@ -613,7 +41,7 @@ static public String timeZoneByCountryAndRegion(String country,String region) {
} else if (region.equals("05") == true) {
timezone = "America/Argentina/Cordoba";
} else if (region.equals("06") == true) {
- timezone = "America/Argentina/Tucuman";
+ timezone = "America/Argentina/Buenos_Aires";
} else if (region.equals("07") == true) {
timezone = "America/Argentina/Buenos_Aires";
} else if (region.equals("08") == true) {
@@ -631,9 +59,9 @@ static public String timeZoneByCountryAndRegion(String country,String region) {
} else if (region.equals("14") == true) {
timezone = "America/Argentina/Buenos_Aires";
} else if (region.equals("15") == true) {
- timezone = "America/Argentina/San_Luis";
+ timezone = "America/Argentina/Mendoza";
} else if (region.equals("16") == true) {
- timezone = "America/Argentina/Buenos_Aires";
+ timezone = "America/Argentina/San_Luis";
} else if (region.equals("17") == true) {
timezone = "America/Argentina/Salta";
} else if (region.equals("18") == true) {
@@ -643,7 +71,7 @@ static public String timeZoneByCountryAndRegion(String country,String region) {
} else if (region.equals("20") == true) {
timezone = "America/Argentina/Rio_Gallegos";
} else if (region.equals("21") == true) {
- timezone = "America/Argentina/Buenos_Aires";
+ timezone = "America/Argentina/Cordoba";
} else if (region.equals("22") == true) {
timezone = "America/Argentina/Catamarca";
} else if (region.equals("23") == true) {
@@ -651,13 +79,65 @@ static public String timeZoneByCountryAndRegion(String country,String region) {
} else if (region.equals("24") == true) {
timezone = "America/Argentina/Tucuman";
}
+ } else if (country.equals("AS") == true) {
+ timezone = "Pacific/Pago_Pago";
+ } else if (country.equals("AT") == true) {
+ timezone = "Europe/Vienna";
+ } else if (country.equals("AU") == true) {
+ if (region.equals("01") == true) {
+ timezone = "Australia/Sydney";
+ } else if (region.equals("02") == true) {
+ timezone = "Australia/Sydney";
+ } else if (region.equals("03") == true) {
+ timezone = "Australia/Darwin";
+ } else if (region.equals("04") == true) {
+ timezone = "Australia/Brisbane";
+ } else if (region.equals("05") == true) {
+ timezone = "Australia/Adelaide";
+ } else if (region.equals("06") == true) {
+ timezone = "Australia/Hobart";
+ } else if (region.equals("07") == true) {
+ timezone = "Australia/Melbourne";
+ } else if (region.equals("08") == true) {
+ timezone = "Australia/Perth";
+ }
+ } else if (country.equals("AW") == true) {
+ timezone = "America/Aruba";
+ } else if (country.equals("AX") == true) {
+ timezone = "Europe/Mariehamn";
+ } else if (country.equals("AZ") == true) {
+ timezone = "Asia/Baku";
+ } else if (country.equals("BA") == true) {
+ timezone = "Europe/Sarajevo";
+ } else if (country.equals("BB") == true) {
+ timezone = "America/Barbados";
+ } else if (country.equals("BD") == true) {
+ timezone = "Asia/Dhaka";
+ } else if (country.equals("BE") == true) {
+ timezone = "Europe/Brussels";
+ } else if (country.equals("BF") == true) {
+ timezone = "Africa/Ouagadougou";
+ } else if (country.equals("BG") == true) {
+ timezone = "Europe/Sofia";
+ } else if (country.equals("BH") == true) {
+ timezone = "Asia/Bahrain";
+ } else if (country.equals("BI") == true) {
+ timezone = "Africa/Bujumbura";
+ } else if (country.equals("BJ") == true) {
+ timezone = "Africa/Porto-Novo";
+ } else if (country.equals("BM") == true) {
+ timezone = "Atlantic/Bermuda";
+ } else if (country.equals("BN") == true) {
+ timezone = "Asia/Brunei";
+ } else if (country.equals("BO") == true) {
+ timezone = "America/La_Paz";
} else if (country.equals("BR") == true) {
if (region.equals("01") == true) {
timezone = "America/Rio_Branco";
} else if (region.equals("02") == true) {
timezone = "America/Maceio";
} else if (region.equals("03") == true) {
- timezone = "America/Sao_Paulo";
+ timezone = "America/Belem";
} else if (region.equals("04") == true) {
timezone = "America/Manaus";
} else if (region.equals("05") == true) {
@@ -665,13 +145,13 @@ static public String timeZoneByCountryAndRegion(String country,String region) {
} else if (region.equals("06") == true) {
timezone = "America/Fortaleza";
} else if (region.equals("07") == true) {
- timezone = "America/Sao_Paulo";
+ timezone = "America/Cuiaba";
} else if (region.equals("08") == true) {
timezone = "America/Sao_Paulo";
} else if (region.equals("11") == true) {
timezone = "America/Campo_Grande";
} else if (region.equals("13") == true) {
- timezone = "America/Belem";
+ timezone = "America/Araguaina";
} else if (region.equals("14") == true) {
timezone = "America/Cuiaba";
} else if (region.equals("15") == true) {
@@ -681,7 +161,7 @@ static public String timeZoneByCountryAndRegion(String country,String region) {
} else if (region.equals("17") == true) {
timezone = "America/Recife";
} else if (region.equals("18") == true) {
- timezone = "America/Sao_Paulo";
+ timezone = "America/Campo_Grande";
} else if (region.equals("20") == true) {
timezone = "America/Fortaleza";
} else if (region.equals("21") == true) {
@@ -701,21 +181,73 @@ static public String timeZoneByCountryAndRegion(String country,String region) {
} else if (region.equals("28") == true) {
timezone = "America/Maceio";
} else if (region.equals("29") == true) {
- timezone = "America/Sao_Paulo";
+ timezone = "America/Campo_Grande";
} else if (region.equals("30") == true) {
timezone = "America/Recife";
} else if (region.equals("31") == true) {
timezone = "America/Araguaina";
}
+ } else if (country.equals("BS") == true) {
+ timezone = "America/Nassau";
+ } else if (country.equals("BT") == true) {
+ timezone = "Asia/Thimphu";
+ } else if (country.equals("BV") == true) {
+ timezone = "Antarctica/Syowa";
+ } else if (country.equals("BW") == true) {
+ timezone = "Africa/Gaborone";
+ } else if (country.equals("BY") == true) {
+ timezone = "Europe/Minsk";
+ } else if (country.equals("BZ") == true) {
+ timezone = "America/Belize";
+ } else if (country.equals("CA") == true) {
+ if (region.equals("AB") == true) {
+ timezone = "America/Edmonton";
+ } else if (region.equals("BC") == true) {
+ timezone = "America/Vancouver";
+ } else if (region.equals("MB") == true) {
+ timezone = "America/Winnipeg";
+ } else if (region.equals("NB") == true) {
+ timezone = "America/Halifax";
+ } else if (region.equals("NL") == true) {
+ timezone = "America/St_Johns";
+ } else if (region.equals("NS") == true) {
+ timezone = "America/Halifax";
+ } else if (region.equals("NT") == true) {
+ timezone = "America/Yellowknife";
+ } else if (region.equals("NU") == true) {
+ timezone = "America/Rankin_Inlet";
+ } else if (region.equals("ON") == true) {
+ timezone = "America/Rainy_River";
+ } else if (region.equals("PE") == true) {
+ timezone = "America/Halifax";
+ } else if (region.equals("QC") == true) {
+ timezone = "America/Montreal";
+ } else if (region.equals("SK") == true) {
+ timezone = "America/Regina";
+ } else if (region.equals("YT") == true) {
+ timezone = "America/Whitehorse";
+ }
+ } else if (country.equals("CC") == true) {
+ timezone = "Indian/Cocos";
} else if (country.equals("CD") == true) {
- if (region.equals("02") == true) {
+ if (region.equals("01") == true) {
+ timezone = "Africa/Kinshasa";
+ } else if (region.equals("02") == true) {
+ timezone = "Africa/Kinshasa";
+ } else if (region.equals("03") == true) {
timezone = "Africa/Kinshasa";
+ } else if (region.equals("04") == true) {
+ timezone = "Africa/Lubumbashi";
} else if (region.equals("05") == true) {
timezone = "Africa/Lubumbashi";
} else if (region.equals("06") == true) {
timezone = "Africa/Kinshasa";
+ } else if (region.equals("07") == true) {
+ timezone = "Africa/Lubumbashi";
} else if (region.equals("08") == true) {
timezone = "Africa/Kinshasa";
+ } else if (region.equals("09") == true) {
+ timezone = "Africa/Lubumbashi";
} else if (region.equals("10") == true) {
timezone = "Africa/Lubumbashi";
} else if (region.equals("11") == true) {
@@ -723,6 +255,20 @@ static public String timeZoneByCountryAndRegion(String country,String region) {
} else if (region.equals("12") == true) {
timezone = "Africa/Lubumbashi";
}
+ } else if (country.equals("CF") == true) {
+ timezone = "Africa/Bangui";
+ } else if (country.equals("CG") == true) {
+ timezone = "Africa/Brazzaville";
+ } else if (country.equals("CH") == true) {
+ timezone = "Europe/Zurich";
+ } else if (country.equals("CI") == true) {
+ timezone = "Africa/Abidjan";
+ } else if (country.equals("CK") == true) {
+ timezone = "Pacific/Rarotonga";
+ } else if (country.equals("CL") == true) {
+ timezone = "America/Santiago";
+ } else if (country.equals("CM") == true) {
+ timezone = "Africa/Douala";
} else if (country.equals("CN") == true) {
if (region.equals("01") == true) {
timezone = "Asia/Shanghai";
@@ -747,7 +293,7 @@ static public String timeZoneByCountryAndRegion(String country,String region) {
} else if (region.equals("11") == true) {
timezone = "Asia/Chongqing";
} else if (region.equals("12") == true) {
- timezone = "Asia/Shanghai";
+ timezone = "Asia/Chongqing";
} else if (region.equals("13") == true) {
timezone = "Asia/Urumqi";
} else if (region.equals("14") == true) {
@@ -787,6 +333,32 @@ static public String timeZoneByCountryAndRegion(String country,String region) {
} else if (region.equals("33") == true) {
timezone = "Asia/Chongqing";
}
+ } else if (country.equals("CO") == true) {
+ timezone = "America/Bogota";
+ } else if (country.equals("CR") == true) {
+ timezone = "America/Costa_Rica";
+ } else if (country.equals("CU") == true) {
+ timezone = "America/Havana";
+ } else if (country.equals("CV") == true) {
+ timezone = "Atlantic/Cape_Verde";
+ } else if (country.equals("CX") == true) {
+ timezone = "Indian/Christmas";
+ } else if (country.equals("CY") == true) {
+ timezone = "Asia/Nicosia";
+ } else if (country.equals("CZ") == true) {
+ timezone = "Europe/Prague";
+ } else if (country.equals("DE") == true) {
+ timezone = "Europe/Berlin";
+ } else if (country.equals("DJ") == true) {
+ timezone = "Africa/Djibouti";
+ } else if (country.equals("DK") == true) {
+ timezone = "Europe/Copenhagen";
+ } else if (country.equals("DM") == true) {
+ timezone = "America/Dominica";
+ } else if (country.equals("DO") == true) {
+ timezone = "America/Santo_Domingo";
+ } else if (country.equals("DZ") == true) {
+ timezone = "Africa/Algiers";
} else if (country.equals("EC") == true) {
if (region.equals("01") == true) {
timezone = "Pacific/Galapagos";
@@ -824,11 +396,19 @@ static public String timeZoneByCountryAndRegion(String country,String region) {
timezone = "America/Guayaquil";
} else if (region.equals("19") == true) {
timezone = "America/Guayaquil";
- } else if (region.equals("20") == true) {
- timezone = "America/Guayaquil";
} else if (region.equals("22") == true) {
timezone = "America/Guayaquil";
+ } else if (region.equals("24") == true) {
+ timezone = "America/Guayaquil";
}
+ } else if (country.equals("EE") == true) {
+ timezone = "Europe/Tallinn";
+ } else if (country.equals("EG") == true) {
+ timezone = "Africa/Cairo";
+ } else if (country.equals("EH") == true) {
+ timezone = "Africa/El_Aaiun";
+ } else if (country.equals("ER") == true) {
+ timezone = "Africa/Asmara";
} else if (country.equals("ES") == true) {
if (region.equals("07") == true) {
timezone = "Europe/Madrid";
@@ -865,14 +445,74 @@ static public String timeZoneByCountryAndRegion(String country,String region) {
} else if (region.equals("60") == true) {
timezone = "Europe/Madrid";
}
+ } else if (country.equals("ET") == true) {
+ timezone = "Africa/Addis_Ababa";
+ } else if (country.equals("FI") == true) {
+ timezone = "Europe/Helsinki";
+ } else if (country.equals("FJ") == true) {
+ timezone = "Pacific/Fiji";
+ } else if (country.equals("FK") == true) {
+ timezone = "Atlantic/Stanley";
+ } else if (country.equals("FM") == true) {
+ timezone = "Pacific/Pohnpei";
+ } else if (country.equals("FO") == true) {
+ timezone = "Atlantic/Faroe";
+ } else if (country.equals("FR") == true) {
+ timezone = "Europe/Paris";
+ } else if (country.equals("GA") == true) {
+ timezone = "Africa/Libreville";
+ } else if (country.equals("GB") == true) {
+ timezone = "Europe/London";
+ } else if (country.equals("GD") == true) {
+ timezone = "America/Grenada";
+ } else if (country.equals("GE") == true) {
+ timezone = "Asia/Tbilisi";
+ } else if (country.equals("GF") == true) {
+ timezone = "America/Cayenne";
+ } else if (country.equals("GG") == true) {
+ timezone = "Europe/Guernsey";
+ } else if (country.equals("GH") == true) {
+ timezone = "Africa/Accra";
+ } else if (country.equals("GI") == true) {
+ timezone = "Europe/Gibraltar";
} else if (country.equals("GL") == true) {
if (region.equals("01") == true) {
timezone = "America/Thule";
} else if (region.equals("02") == true) {
- timezone = "America/Godthab";
+ timezone = "America/Scoresbysund";
} else if (region.equals("03") == true) {
timezone = "America/Godthab";
}
+ } else if (country.equals("GM") == true) {
+ timezone = "Africa/Banjul";
+ } else if (country.equals("GN") == true) {
+ timezone = "Africa/Conakry";
+ } else if (country.equals("GP") == true) {
+ timezone = "America/Guadeloupe";
+ } else if (country.equals("GQ") == true) {
+ timezone = "Africa/Malabo";
+ } else if (country.equals("GR") == true) {
+ timezone = "Europe/Athens";
+ } else if (country.equals("GS") == true) {
+ timezone = "Atlantic/South_Georgia";
+ } else if (country.equals("GT") == true) {
+ timezone = "America/Guatemala";
+ } else if (country.equals("GU") == true) {
+ timezone = "Pacific/Guam";
+ } else if (country.equals("GW") == true) {
+ timezone = "Africa/Bissau";
+ } else if (country.equals("GY") == true) {
+ timezone = "America/Guyana";
+ } else if (country.equals("HK") == true) {
+ timezone = "Asia/Hong_Kong";
+ } else if (country.equals("HN") == true) {
+ timezone = "America/Tegucigalpa";
+ } else if (country.equals("HR") == true) {
+ timezone = "Europe/Zagreb";
+ } else if (country.equals("HT") == true) {
+ timezone = "America/Port-au-Prince";
+ } else if (country.equals("HU") == true) {
+ timezone = "Europe/Budapest";
} else if (country.equals("ID") == true) {
if (region.equals("01") == true) {
timezone = "Asia/Pontianak";
@@ -884,14 +524,10 @@ static public String timeZoneByCountryAndRegion(String country,String region) {
timezone = "Asia/Jakarta";
} else if (region.equals("05") == true) {
timezone = "Asia/Jakarta";
- } else if (region.equals("06") == true) {
- timezone = "Asia/Jakarta";
} else if (region.equals("07") == true) {
timezone = "Asia/Jakarta";
} else if (region.equals("08") == true) {
timezone = "Asia/Jakarta";
- } else if (region.equals("09") == true) {
- timezone = "Asia/Jayapura";
} else if (region.equals("10") == true) {
timezone = "Asia/Jakarta";
} else if (region.equals("11") == true) {
@@ -899,40 +535,98 @@ static public String timeZoneByCountryAndRegion(String country,String region) {
} else if (region.equals("12") == true) {
timezone = "Asia/Makassar";
} else if (region.equals("13") == true) {
- timezone = "Asia/Makassar";
+ timezone = "Asia/Pontianak";
} else if (region.equals("14") == true) {
timezone = "Asia/Makassar";
} else if (region.equals("15") == true) {
timezone = "Asia/Jakarta";
- } else if (region.equals("16") == true) {
- timezone = "Asia/Makassar";
} else if (region.equals("17") == true) {
timezone = "Asia/Makassar";
} else if (region.equals("18") == true) {
timezone = "Asia/Makassar";
- } else if (region.equals("19") == true) {
- timezone = "Asia/Pontianak";
- } else if (region.equals("20") == true) {
- timezone = "Asia/Makassar";
} else if (region.equals("21") == true) {
timezone = "Asia/Makassar";
} else if (region.equals("22") == true) {
timezone = "Asia/Makassar";
- } else if (region.equals("23") == true) {
- timezone = "Asia/Makassar";
} else if (region.equals("24") == true) {
timezone = "Asia/Jakarta";
- } else if (region.equals("25") == true) {
- timezone = "Asia/Pontianak";
} else if (region.equals("26") == true) {
timezone = "Asia/Pontianak";
+ } else if (region.equals("28") == true) {
+ timezone = "Asia/Jayapura";
+ } else if (region.equals("29") == true) {
+ timezone = "Asia/Makassar";
} else if (region.equals("30") == true) {
timezone = "Asia/Jakarta";
} else if (region.equals("31") == true) {
timezone = "Asia/Makassar";
+ } else if (region.equals("32") == true) {
+ timezone = "Asia/Jakarta";
} else if (region.equals("33") == true) {
timezone = "Asia/Jakarta";
+ } else if (region.equals("34") == true) {
+ timezone = "Asia/Makassar";
+ } else if (region.equals("35") == true) {
+ timezone = "Asia/Pontianak";
+ } else if (region.equals("36") == true) {
+ timezone = "Asia/Jayapura";
+ } else if (region.equals("37") == true) {
+ timezone = "Asia/Pontianak";
+ } else if (region.equals("38") == true) {
+ timezone = "Asia/Makassar";
+ } else if (region.equals("39") == true) {
+ timezone = "Asia/Jayapura";
+ } else if (region.equals("40") == true) {
+ timezone = "Asia/Pontianak";
+ } else if (region.equals("41") == true) {
+ timezone = "Asia/Makassar";
}
+ } else if (country.equals("IE") == true) {
+ timezone = "Europe/Dublin";
+ } else if (country.equals("IL") == true) {
+ timezone = "Asia/Jerusalem";
+ } else if (country.equals("IM") == true) {
+ timezone = "Europe/Isle_of_Man";
+ } else if (country.equals("IN") == true) {
+ timezone = "Asia/Kolkata";
+ } else if (country.equals("IO") == true) {
+ timezone = "Indian/Chagos";
+ } else if (country.equals("IQ") == true) {
+ timezone = "Asia/Baghdad";
+ } else if (country.equals("IR") == true) {
+ timezone = "Asia/Tehran";
+ } else if (country.equals("IS") == true) {
+ timezone = "Atlantic/Reykjavik";
+ } else if (country.equals("IT") == true) {
+ timezone = "Europe/Rome";
+ } else if (country.equals("JE") == true) {
+ timezone = "Europe/Jersey";
+ } else if (country.equals("JM") == true) {
+ timezone = "America/Jamaica";
+ } else if (country.equals("JO") == true) {
+ timezone = "Asia/Amman";
+ } else if (country.equals("JP") == true) {
+ timezone = "Asia/Tokyo";
+ } else if (country.equals("KE") == true) {
+ timezone = "Africa/Nairobi";
+ } else if (country.equals("KG") == true) {
+ timezone = "Asia/Bishkek";
+ } else if (country.equals("KH") == true) {
+ timezone = "Asia/Phnom_Penh";
+ } else if (country.equals("KI") == true) {
+ timezone = "Pacific/Tarawa";
+ } else if (country.equals("KM") == true) {
+ timezone = "Indian/Comoro";
+ } else if (country.equals("KN") == true) {
+ timezone = "America/St_Kitts";
+ } else if (country.equals("KP") == true) {
+ timezone = "Asia/Pyongyang";
+ } else if (country.equals("KR") == true) {
+ timezone = "Asia/Seoul";
+ } else if (country.equals("KW") == true) {
+ timezone = "Asia/Kuwait";
+ } else if (country.equals("KY") == true) {
+ timezone = "America/Cayman";
} else if (country.equals("KZ") == true) {
if (region.equals("01") == true) {
timezone = "Asia/Almaty";
@@ -957,7 +651,7 @@ static public String timeZoneByCountryAndRegion(String country,String region) {
} else if (region.equals("11") == true) {
timezone = "Asia/Almaty";
} else if (region.equals("12") == true) {
- timezone = "Asia/Qyzylorda";
+ timezone = "Asia/Almaty";
} else if (region.equals("13") == true) {
timezone = "Asia/Aqtobe";
} else if (region.equals("14") == true) {
@@ -969,23 +663,97 @@ static public String timeZoneByCountryAndRegion(String country,String region) {
} else if (region.equals("17") == true) {
timezone = "Asia/Almaty";
}
+ } else if (country.equals("LA") == true) {
+ timezone = "Asia/Vientiane";
+ } else if (country.equals("LB") == true) {
+ timezone = "Asia/Beirut";
+ } else if (country.equals("LC") == true) {
+ timezone = "America/St_Lucia";
+ } else if (country.equals("LI") == true) {
+ timezone = "Europe/Vaduz";
+ } else if (country.equals("LK") == true) {
+ timezone = "Asia/Colombo";
+ } else if (country.equals("LR") == true) {
+ timezone = "Africa/Monrovia";
+ } else if (country.equals("LS") == true) {
+ timezone = "Africa/Maseru";
+ } else if (country.equals("LT") == true) {
+ timezone = "Europe/Vilnius";
+ } else if (country.equals("LU") == true) {
+ timezone = "Europe/Luxembourg";
+ } else if (country.equals("LV") == true) {
+ timezone = "Europe/Riga";
+ } else if (country.equals("LY") == true) {
+ timezone = "Africa/Tripoli";
+ } else if (country.equals("MA") == true) {
+ timezone = "Africa/Casablanca";
+ } else if (country.equals("MC") == true) {
+ timezone = "Europe/Monaco";
+ } else if (country.equals("MD") == true) {
+ timezone = "Europe/Chisinau";
+ } else if (country.equals("ME") == true) {
+ timezone = "Europe/Podgorica";
+ } else if (country.equals("MG") == true) {
+ timezone = "Indian/Antananarivo";
+ } else if (country.equals("MH") == true) {
+ timezone = "Pacific/Kwajalein";
+ } else if (country.equals("MK") == true) {
+ timezone = "Europe/Skopje";
+ } else if (country.equals("ML") == true) {
+ timezone = "Africa/Bamako";
+ } else if (country.equals("MM") == true) {
+ timezone = "Asia/Rangoon";
+ } else if (country.equals("MN") == true) {
+ if (region.equals("06") == true) {
+ timezone = "Asia/Choibalsan";
+ } else if (region.equals("11") == true) {
+ timezone = "Asia/Ulaanbaatar";
+ } else if (region.equals("17") == true) {
+ timezone = "Asia/Choibalsan";
+ } else if (region.equals("19") == true) {
+ timezone = "Asia/Hovd";
+ } else if (region.equals("20") == true) {
+ timezone = "Asia/Ulaanbaatar";
+ } else if (region.equals("21") == true) {
+ timezone = "Asia/Ulaanbaatar";
+ } else if (region.equals("25") == true) {
+ timezone = "Asia/Ulaanbaatar";
+ }
+ } else if (country.equals("MO") == true) {
+ timezone = "Asia/Macau";
+ } else if (country.equals("MP") == true) {
+ timezone = "Pacific/Saipan";
+ } else if (country.equals("MQ") == true) {
+ timezone = "America/Martinique";
+ } else if (country.equals("MR") == true) {
+ timezone = "Africa/Nouakchott";
+ } else if (country.equals("MS") == true) {
+ timezone = "America/Montserrat";
+ } else if (country.equals("MT") == true) {
+ timezone = "Europe/Malta";
+ } else if (country.equals("MU") == true) {
+ timezone = "Indian/Mauritius";
+ } else if (country.equals("MV") == true) {
+ timezone = "Indian/Maldives";
+ } else if (country.equals("MW") == true) {
+ timezone = "Africa/Blantyre";
} else if (country.equals("MX") == true) {
if (region.equals("01") == true) {
- timezone = "America/Mexico_City";
+ timezone = "America/Bahia_Banderas";
} else if (region.equals("02") == true) {
timezone = "America/Tijuana";
} else if (region.equals("03") == true) {
- timezone = "America/Hermosillo";
+ timezone = "America/Mazatlan";
} else if (region.equals("04") == true) {
timezone = "America/Merida";
} else if (region.equals("05") == true) {
- timezone = "America/Mexico_City";
+ timezone = "America/Merida";
} else if (region.equals("06") == true) {
timezone = "America/Chihuahua";
} else if (region.equals("07") == true) {
timezone = "America/Monterrey";
} else if (region.equals("08") == true) {
- timezone = "America/Mexico_City";
+ timezone = "America/Bahia_Banderas";
} else if (region.equals("09") == true) {
timezone = "America/Mexico_City";
} else if (region.equals("10") == true) {
@@ -997,15 +765,15 @@ static public String timeZoneByCountryAndRegion(String country,String region) {
} else if (region.equals("13") == true) {
timezone = "America/Mexico_City";
} else if (region.equals("14") == true) {
- timezone = "America/Mazatlan";
+ timezone = "America/Bahia_Banderas";
} else if (region.equals("15") == true) {
- timezone = "America/Chihuahua";
+ timezone = "America/Mexico_City";
} else if (region.equals("16") == true) {
timezone = "America/Mexico_City";
} else if (region.equals("17") == true) {
timezone = "America/Mexico_City";
} else if (region.equals("18") == true) {
- timezone = "America/Mazatlan";
+ timezone = "America/Bahia_Banderas";
} else if (region.equals("19") == true) {
timezone = "America/Monterrey";
} else if (region.equals("20") == true) {
@@ -1025,7 +793,7 @@ static public String timeZoneByCountryAndRegion(String country,String region) {
} else if (region.equals("27") == true) {
timezone = "America/Merida";
} else if (region.equals("28") == true) {
- timezone = "America/Monterrey";
+ timezone = "America/Matamoros";
} else if (region.equals("29") == true) {
timezone = "America/Mexico_City";
} else if (region.equals("30") == true) {
@@ -1033,7 +801,7 @@ static public String timeZoneByCountryAndRegion(String country,String region) {
} else if (region.equals("31") == true) {
timezone = "America/Merida";
} else if (region.equals("32") == true) {
- timezone = "America/Monterrey";
+ timezone = "America/Bahia_Banderas";
}
} else if (country.equals("MY") == true) {
if (region.equals("01") == true) {
@@ -1067,10 +835,32 @@ static public String timeZoneByCountryAndRegion(String country,String region) {
} else if (region.equals("16") == true) {
timezone = "Asia/Kuching";
}
+ } else if (country.equals("MZ") == true) {
+ timezone = "Africa/Maputo";
+ } else if (country.equals("NA") == true) {
+ timezone = "Africa/Windhoek";
+ } else if (country.equals("NC") == true) {
+ timezone = "Pacific/Noumea";
+ } else if (country.equals("NE") == true) {
+ timezone = "Africa/Niamey";
+ } else if (country.equals("NF") == true) {
+ timezone = "Pacific/Norfolk";
+ } else if (country.equals("NG") == true) {
+ timezone = "Africa/Lagos";
+ } else if (country.equals("NI") == true) {
+ timezone = "America/Managua";
+ } else if (country.equals("NL") == true) {
+ timezone = "Europe/Amsterdam";
+ } else if (country.equals("NO") == true) {
+ timezone = "Europe/Oslo";
+ } else if (country.equals("NP") == true) {
+ timezone = "Asia/Kathmandu";
+ } else if (country.equals("NR") == true) {
+ timezone = "Pacific/Nauru";
+ } else if (country.equals("NU") == true) {
+ timezone = "Pacific/Niue";
} else if (country.equals("NZ") == true) {
- if (region.equals("85") == true) {
- timezone = "Pacific/Auckland";