timezone 1.2.12 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.markdown +7 -0
- data/Rakefile +1 -1
- data/data/Africa/Abidjan +1 -1
- data/data/Africa/Accra +1 -1
- data/data/Africa/Addis_Ababa +1 -1
- data/data/Africa/Algiers +1 -1
- data/data/Africa/Asmara +1 -1
- data/data/Africa/Asmera +1 -1
- data/data/Africa/Bamako +1 -1
- data/data/Africa/Bangui +1 -1
- data/data/Africa/Banjul +1 -1
- data/data/Africa/Bissau +1 -1
- data/data/Africa/Blantyre +1 -1
- data/data/Africa/Brazzaville +1 -1
- data/data/Africa/Bujumbura +1 -1
- data/data/Africa/Cairo +1 -1
- data/data/Africa/Casablanca +1 -1
- data/data/Africa/Ceuta +1 -1
- data/data/Africa/Conakry +1 -1
- data/data/Africa/Dakar +1 -1
- data/data/Africa/Dar_es_Salaam +1 -1
- data/data/Africa/Djibouti +1 -1
- data/data/Africa/Douala +1 -1
- data/data/Africa/El_Aaiun +1 -1
- data/data/Africa/Freetown +1 -1
- data/data/Africa/Gaborone +1 -1
- data/data/Africa/Harare +1 -1
- data/data/Africa/Johannesburg +1 -1
- data/data/Africa/Juba +1 -1
- data/data/Africa/Kampala +1 -1
- data/data/Africa/Kigali +1 -1
- data/data/Africa/Kinshasa +1 -1
- data/data/Africa/Lagos +1 -1
- data/data/Africa/Libreville +1 -1
- data/data/Africa/Lome +1 -1
- data/data/Africa/Luanda +1 -1
- data/data/Africa/Lubumbashi +1 -1
- data/data/Africa/Lusaka +1 -1
- data/data/Africa/Malabo +1 -1
- data/data/Africa/Maputo +1 -1
- data/data/Africa/Maseru +1 -1
- data/data/Africa/Mbabane +1 -1
- data/data/Africa/Mogadishu +1 -1
- data/data/Africa/Monrovia +1 -1
- data/data/Africa/Nairobi +1 -1
- data/data/Africa/Ndjamena +1 -1
- data/data/Africa/Niamey +1 -1
- data/data/Africa/Nouakchott +1 -1
- data/data/Africa/Ouagadougou +1 -1
- data/data/Africa/Porto-Novo +1 -1
- data/data/Africa/Timbuktu +1 -1
- data/data/Africa/Tripoli +1 -1
- data/data/Africa/Tunis +1 -1
- data/data/America/Adak +1 -1
- data/data/America/Anchorage +1 -1
- data/data/America/Anguilla +1 -1
- data/data/America/Antigua +1 -1
- data/data/America/Araguaina +1 -1
- data/data/America/Argentina/Buenos_Aires +1 -1
- data/data/America/Argentina/Catamarca +1 -1
- data/data/America/Argentina/ComodRivadavia +1 -1
- data/data/America/Argentina/Cordoba +1 -1
- data/data/America/Argentina/Jujuy +1 -1
- data/data/America/Argentina/La_Rioja +1 -1
- data/data/America/Argentina/Mendoza +1 -1
- data/data/America/Argentina/Rio_Gallegos +1 -1
- data/data/America/Argentina/Salta +1 -1
- data/data/America/Argentina/San_Juan +1 -1
- data/data/America/Argentina/San_Luis +1 -1
- data/data/America/Argentina/Tucuman +1 -1
- data/data/America/Argentina/Ushuaia +1 -1
- data/data/America/Aruba +1 -1
- data/data/America/Asuncion +1 -1
- data/data/America/Atikokan +1 -1
- data/data/America/Atka +1 -1
- data/data/America/Bahia +1 -1
- data/data/America/Bahia_Banderas +1 -1
- data/data/America/Barbados +1 -1
- data/data/America/Belem +1 -1
- data/data/America/Belize +1 -1
- data/data/America/Blanc-Sablon +1 -1
- data/data/America/Boa_Vista +1 -1
- data/data/America/Bogota +1 -1
- data/data/America/Boise +1 -1
- data/data/America/Buenos_Aires +1 -1
- data/data/America/Cambridge_Bay +1 -1
- data/data/America/Cancun +1 -1
- data/data/America/Caracas +1 -1
- data/data/America/Catamarca +1 -1
- data/data/America/Cayenne +1 -1
- data/data/America/Cayman +1 -1
- data/data/America/Chicago +1 -1
- data/data/America/Chihuahua +1 -1
- data/data/America/Coral_Harbour +1 -1
- data/data/America/Cordoba +1 -1
- data/data/America/Costa_Rica +1 -1
- data/data/America/Creston +1 -1
- data/data/America/Curacao +1 -1
- data/data/America/Danmarkshavn +1 -1
- data/data/America/Dawson +1 -1
- data/data/America/Dawson_Creek +1 -1
- data/data/America/Denver +1 -1
- data/data/America/Detroit +1 -1
- data/data/America/Dominica +1 -1
- data/data/America/Edmonton +1 -1
- data/data/America/Eirunepe +1 -1
- data/data/America/El_Salvador +1 -1
- data/data/America/Ensenada +1 -1
- data/data/America/Fort_Nelson +1 -1
- data/data/America/Fort_Wayne +1 -1
- data/data/America/Fortaleza +1 -1
- data/data/America/Glace_Bay +1 -1
- data/data/America/Godthab +1 -1
- data/data/America/Goose_Bay +1 -1
- data/data/America/Grand_Turk +1 -1
- data/data/America/Grenada +1 -1
- data/data/America/Guadeloupe +1 -1
- data/data/America/Guatemala +1 -1
- data/data/America/Guayaquil +1 -1
- data/data/America/Guyana +1 -1
- data/data/America/Halifax +1 -1
- data/data/America/Havana +1 -1
- data/data/America/Hermosillo +1 -1
- data/data/America/Indiana/Indianapolis +1 -1
- data/data/America/Indiana/Knox +1 -1
- data/data/America/Indiana/Marengo +1 -1
- data/data/America/Indiana/Petersburg +1 -1
- data/data/America/Indiana/Tell_City +1 -1
- data/data/America/Indiana/Vevay +1 -1
- data/data/America/Indiana/Vincennes +1 -1
- data/data/America/Indiana/Winamac +1 -1
- data/data/America/Indianapolis +1 -1
- data/data/America/Inuvik +1 -1
- data/data/America/Iqaluit +1 -1
- data/data/America/Jamaica +1 -1
- data/data/America/Jujuy +1 -1
- data/data/America/Juneau +1 -1
- data/data/America/Kentucky/Louisville +1 -1
- data/data/America/Kentucky/Monticello +1 -1
- data/data/America/Knox_IN +1 -1
- data/data/America/Kralendijk +1 -1
- data/data/America/La_Paz +1 -1
- data/data/America/Lima +1 -1
- data/data/America/Los_Angeles +1 -1
- data/data/America/Louisville +1 -1
- data/data/America/Lower_Princes +1 -1
- data/data/America/Maceio +1 -1
- data/data/America/Managua +1 -1
- data/data/America/Manaus +1 -1
- data/data/America/Marigot +1 -1
- data/data/America/Martinique +1 -1
- data/data/America/Matamoros +1 -1
- data/data/America/Mazatlan +1 -1
- data/data/America/Mendoza +1 -1
- data/data/America/Menominee +1 -1
- data/data/America/Merida +1 -1
- data/data/America/Metlakatla +1 -1
- data/data/America/Mexico_City +1 -1
- data/data/America/Miquelon +1 -1
- data/data/America/Moncton +1 -1
- data/data/America/Monterrey +1 -1
- data/data/America/Montevideo +1 -1
- data/data/America/Montreal +1 -1
- data/data/America/Montserrat +1 -1
- data/data/America/Nassau +1 -1
- data/data/America/New_York +1 -1
- data/data/America/Nipigon +1 -1
- data/data/America/Nome +1 -1
- data/data/America/Noronha +1 -1
- data/data/America/North_Dakota/Beulah +1 -1
- data/data/America/North_Dakota/Center +1 -1
- data/data/America/North_Dakota/New_Salem +1 -1
- data/data/America/Ojinaga +1 -1
- data/data/America/Panama +1 -1
- data/data/America/Pangnirtung +1 -1
- data/data/America/Paramaribo +1 -1
- data/data/America/Phoenix +1 -1
- data/data/America/Port-au-Prince +1 -1
- data/data/America/Port_of_Spain +1 -1
- data/data/America/Porto_Acre +1 -1
- data/data/America/Porto_Velho +1 -1
- data/data/America/Puerto_Rico +1 -1
- data/data/America/Punta_Arenas +1 -1
- data/data/America/Rainy_River +1 -1
- data/data/America/Rankin_Inlet +1 -1
- data/data/America/Recife +1 -1
- data/data/America/Regina +1 -1
- data/data/America/Resolute +1 -1
- data/data/America/Rio_Branco +1 -1
- data/data/America/Rosario +1 -1
- data/data/America/Santa_Isabel +1 -1
- data/data/America/Santarem +1 -1
- data/data/America/Santiago +1 -1
- data/data/America/Santo_Domingo +1 -1
- data/data/America/Scoresbysund +1 -1
- data/data/America/Shiprock +1 -1
- data/data/America/Sitka +1 -1
- data/data/America/St_Barthelemy +1 -1
- data/data/America/St_Johns +1 -1
- data/data/America/St_Kitts +1 -1
- data/data/America/St_Lucia +1 -1
- data/data/America/St_Thomas +1 -1
- data/data/America/St_Vincent +1 -1
- data/data/America/Swift_Current +1 -1
- data/data/America/Tegucigalpa +1 -1
- data/data/America/Thule +1 -1
- data/data/America/Thunder_Bay +1 -1
- data/data/America/Tijuana +1 -1
- data/data/America/Toronto +1 -1
- data/data/America/Tortola +1 -1
- data/data/America/Vancouver +1 -1
- data/data/America/Virgin +1 -1
- data/data/America/Whitehorse +1 -1
- data/data/America/Winnipeg +1 -1
- data/data/America/Yakutat +1 -1
- data/data/America/Yellowknife +1 -1
- data/data/Antarctica/Davis +1 -1
- data/data/Antarctica/DumontDUrville +1 -1
- data/data/Antarctica/Macquarie +1 -1
- data/data/Antarctica/Mawson +1 -1
- data/data/Antarctica/McMurdo +1 -1
- data/data/Antarctica/Palmer +1 -1
- data/data/Antarctica/Rothera +1 -1
- data/data/Antarctica/South_Pole +1 -1
- data/data/Antarctica/Syowa +1 -1
- data/data/Antarctica/Troll +1 -1
- data/data/Antarctica/Vostok +1 -1
- data/data/Arctic/Longyearbyen +1 -1
- data/data/Asia/Aden +1 -1
- data/data/Asia/Almaty +1 -1
- data/data/Asia/Amman +1 -1
- data/data/Asia/Anadyr +1 -1
- data/data/Asia/Aqtau +1 -1
- data/data/Asia/Aqtobe +1 -1
- data/data/Asia/Ashgabat +1 -1
- data/data/Asia/Ashkhabad +1 -1
- data/data/Asia/Atyrau +1 -1
- data/data/Asia/Baghdad +1 -1
- data/data/Asia/Bahrain +1 -1
- data/data/Asia/Baku +1 -1
- data/data/Asia/Bangkok +1 -1
- data/data/Asia/Barnaul +1 -1
- data/data/Asia/Beirut +1 -1
- data/data/Asia/Bishkek +1 -1
- data/data/Asia/Brunei +1 -1
- data/data/Asia/Calcutta +1 -1
- data/data/Asia/Chita +1 -1
- data/data/Asia/Choibalsan +1 -1
- data/data/Asia/Chongqing +1 -1
- data/data/Asia/Chungking +1 -1
- data/data/Asia/Colombo +1 -1
- data/data/Asia/Dacca +1 -1
- data/data/Asia/Damascus +1 -1
- data/data/Asia/Dhaka +1 -1
- data/data/Asia/Dili +1 -1
- data/data/Asia/Dubai +1 -1
- data/data/Asia/Dushanbe +1 -1
- data/data/Asia/Famagusta +1 -1
- data/data/Asia/Gaza +1 -1
- data/data/Asia/Harbin +1 -1
- data/data/Asia/Hebron +1 -1
- data/data/Asia/Ho_Chi_Minh +1 -1
- data/data/Asia/Hong_Kong +1 -1
- data/data/Asia/Hovd +1 -1
- data/data/Asia/Irkutsk +1 -1
- data/data/Asia/Istanbul +1 -1
- data/data/Asia/Jakarta +1 -1
- data/data/Asia/Jayapura +1 -1
- data/data/Asia/Jerusalem +1 -1
- data/data/Asia/Kabul +1 -1
- data/data/Asia/Kamchatka +1 -1
- data/data/Asia/Karachi +1 -1
- data/data/Asia/Kashgar +1 -1
- data/data/Asia/Kathmandu +1 -1
- data/data/Asia/Katmandu +1 -1
- data/data/Asia/Khandyga +1 -1
- data/data/Asia/Kolkata +1 -1
- data/data/Asia/Krasnoyarsk +1 -1
- data/data/Asia/Kuala_Lumpur +1 -1
- data/data/Asia/Kuching +1 -1
- data/data/Asia/Kuwait +1 -1
- data/data/Asia/Macao +1 -1
- data/data/Asia/Macau +1 -1
- data/data/Asia/Magadan +1 -1
- data/data/Asia/Makassar +1 -1
- data/data/Asia/Manila +1 -1
- data/data/Asia/Muscat +1 -1
- data/data/Asia/Nicosia +1 -1
- data/data/Asia/Novokuznetsk +1 -1
- data/data/Asia/Novosibirsk +1 -1
- data/data/Asia/Omsk +1 -1
- data/data/Asia/Oral +1 -1
- data/data/Asia/Phnom_Penh +1 -1
- data/data/Asia/Pontianak +1 -1
- data/data/Asia/Qatar +1 -1
- data/data/Asia/Qyzylorda +1 -1
- data/data/Asia/Rangoon +1 -1
- data/data/Asia/Riyadh +1 -1
- data/data/Asia/Saigon +1 -1
- data/data/Asia/Sakhalin +1 -1
- data/data/Asia/Samarkand +1 -1
- data/data/Asia/Seoul +1 -1
- data/data/Asia/Shanghai +1 -1
- data/data/Asia/Singapore +1 -1
- data/data/Asia/Srednekolymsk +1 -1
- data/data/Asia/Taipei +1 -1
- data/data/Asia/Tashkent +1 -1
- data/data/Asia/Tbilisi +1 -1
- data/data/Asia/Tehran +1 -1
- data/data/Asia/Tel_Aviv +1 -1
- data/data/Asia/Thimbu +1 -1
- data/data/Asia/Thimphu +1 -1
- data/data/Asia/Tokyo +1 -1
- data/data/Asia/Tomsk +1 -1
- data/data/Asia/Ujung_Pandang +1 -1
- data/data/Asia/Ulaanbaatar +1 -1
- data/data/Asia/Ulan_Bator +1 -1
- data/data/Asia/Urumqi +1 -1
- data/data/Asia/Ust-Nera +1 -1
- data/data/Asia/Vientiane +1 -1
- data/data/Asia/Vladivostok +1 -1
- data/data/Asia/Yakutsk +1 -1
- data/data/Asia/Yangon +1 -1
- data/data/Asia/Yekaterinburg +1 -1
- data/data/Asia/Yerevan +1 -1
- data/data/Atlantic/Azores +1 -1
- data/data/Atlantic/Bermuda +1 -1
- data/data/Atlantic/Canary +1 -1
- data/data/Atlantic/Cape_Verde +1 -1
- data/data/Atlantic/Faeroe +1 -1
- data/data/Atlantic/Faroe +1 -1
- data/data/Atlantic/Jan_Mayen +1 -1
- data/data/Atlantic/Madeira +1 -1
- data/data/Atlantic/Reykjavik +1 -1
- data/data/Atlantic/South_Georgia +1 -1
- data/data/Atlantic/St_Helena +1 -1
- data/data/Atlantic/Stanley +1 -1
- data/data/Australia/ACT +1 -1
- data/data/Australia/Adelaide +1 -1
- data/data/Australia/Brisbane +1 -1
- data/data/Australia/Broken_Hill +1 -1
- data/data/Australia/Canberra +1 -1
- data/data/Australia/Currie +1 -1
- data/data/Australia/Darwin +1 -1
- data/data/Australia/Eucla +1 -1
- data/data/Australia/Hobart +1 -1
- data/data/Australia/LHI +1 -1
- data/data/Australia/Lindeman +1 -1
- data/data/Australia/Lord_Howe +1 -1
- data/data/Australia/Melbourne +1 -1
- data/data/Australia/NSW +1 -1
- data/data/Australia/North +1 -1
- data/data/Australia/Perth +1 -1
- data/data/Australia/Queensland +1 -1
- data/data/Australia/South +1 -1
- data/data/Australia/Sydney +1 -1
- data/data/Australia/Tasmania +1 -1
- data/data/Australia/Victoria +1 -1
- data/data/Australia/West +1 -1
- data/data/Australia/Yancowinna +1 -1
- data/data/Brazil/Acre +1 -1
- data/data/Brazil/DeNoronha +1 -1
- data/data/Brazil/West +1 -1
- data/data/CET +1 -1
- data/data/CST6CDT +1 -1
- data/data/Canada/Atlantic +1 -1
- data/data/Canada/Central +1 -1
- data/data/Canada/Eastern +1 -1
- data/data/Canada/Mountain +1 -1
- data/data/Canada/Newfoundland +1 -1
- data/data/Canada/Pacific +1 -1
- data/data/Canada/Saskatchewan +1 -1
- data/data/Canada/Yukon +1 -1
- data/data/Chile/Continental +1 -1
- data/data/Chile/EasterIsland +1 -1
- data/data/Cuba +1 -1
- data/data/EET +1 -1
- data/data/EST +1 -1
- data/data/EST5EDT +1 -1
- data/data/Egypt +1 -1
- data/data/Eire +1 -1
- data/data/Etc/GMT +1 -1
- data/data/Etc/GMT+0 +1 -1
- data/data/Etc/GMT+1 +1 -1
- data/data/Etc/GMT+10 +1 -1
- data/data/Etc/GMT+11 +1 -1
- data/data/Etc/GMT+12 +1 -1
- data/data/Etc/GMT+2 +1 -1
- data/data/Etc/GMT+3 +1 -1
- data/data/Etc/GMT+4 +1 -1
- data/data/Etc/GMT+5 +1 -1
- data/data/Etc/GMT+6 +1 -1
- data/data/Etc/GMT+7 +1 -1
- data/data/Etc/GMT+8 +1 -1
- data/data/Etc/GMT+9 +1 -1
- data/data/Etc/GMT-0 +1 -1
- data/data/Etc/GMT-1 +1 -1
- data/data/Etc/GMT-10 +1 -1
- data/data/Etc/GMT-11 +1 -1
- data/data/Etc/GMT-12 +1 -1
- data/data/Etc/GMT-13 +1 -1
- data/data/Etc/GMT-14 +1 -1
- data/data/Etc/GMT-2 +1 -1
- data/data/Etc/GMT-3 +1 -1
- data/data/Etc/GMT-4 +1 -1
- data/data/Etc/GMT-5 +1 -1
- data/data/Etc/GMT-6 +1 -1
- data/data/Etc/GMT-7 +1 -1
- data/data/Etc/GMT-8 +1 -1
- data/data/Etc/GMT-9 +1 -1
- data/data/Etc/GMT0 +1 -1
- data/data/Etc/Greenwich +1 -1
- data/data/Etc/UCT +1 -1
- data/data/Etc/UTC +1 -1
- data/data/Etc/Universal +1 -1
- data/data/Etc/Zulu +1 -1
- data/data/Europe/Amsterdam +1 -1
- data/data/Europe/Andorra +1 -1
- data/data/Europe/Astrakhan +1 -1
- data/data/Europe/Athens +1 -1
- data/data/Europe/Belfast +1 -1
- data/data/Europe/Belgrade +1 -1
- data/data/Europe/Berlin +1 -1
- data/data/Europe/Bratislava +1 -1
- data/data/Europe/Brussels +1 -1
- data/data/Europe/Bucharest +1 -1
- data/data/Europe/Budapest +1 -1
- data/data/Europe/Busingen +1 -1
- data/data/Europe/Chisinau +1 -1
- data/data/Europe/Copenhagen +1 -1
- data/data/Europe/Dublin +1 -1
- data/data/Europe/Gibraltar +1 -1
- data/data/Europe/Guernsey +1 -1
- data/data/Europe/Helsinki +1 -1
- data/data/Europe/Isle_of_Man +1 -1
- data/data/Europe/Istanbul +1 -1
- data/data/Europe/Jersey +1 -1
- data/data/Europe/Kaliningrad +1 -1
- data/data/Europe/Kiev +1 -1
- data/data/Europe/Kirov +1 -1
- data/data/Europe/Lisbon +1 -1
- data/data/Europe/Ljubljana +1 -1
- data/data/Europe/London +1 -1
- data/data/Europe/Luxembourg +1 -1
- data/data/Europe/Madrid +1 -1
- data/data/Europe/Malta +1 -1
- data/data/Europe/Mariehamn +1 -1
- data/data/Europe/Minsk +1 -1
- data/data/Europe/Monaco +1 -1
- data/data/Europe/Moscow +1 -1
- data/data/Europe/Nicosia +1 -1
- data/data/Europe/Oslo +1 -1
- data/data/Europe/Paris +1 -1
- data/data/Europe/Podgorica +1 -1
- data/data/Europe/Prague +1 -1
- data/data/Europe/Riga +1 -1
- data/data/Europe/Rome +1 -1
- data/data/Europe/Samara +1 -1
- data/data/Europe/San_Marino +1 -1
- data/data/Europe/Sarajevo +1 -1
- data/data/Europe/Saratov +1 -1
- data/data/Europe/Simferopol +1 -1
- data/data/Europe/Skopje +1 -1
- data/data/Europe/Sofia +1 -1
- data/data/Europe/Stockholm +1 -1
- data/data/Europe/Tallinn +1 -1
- data/data/Europe/Tirane +1 -1
- data/data/Europe/Tiraspol +1 -1
- data/data/Europe/Ulyanovsk +1 -1
- data/data/Europe/Uzhgorod +1 -1
- data/data/Europe/Vaduz +1 -1
- data/data/Europe/Vatican +1 -1
- data/data/Europe/Vienna +1 -1
- data/data/Europe/Vilnius +1 -1
- data/data/Europe/Volgograd +1 -1
- data/data/Europe/Warsaw +1 -1
- data/data/Europe/Zagreb +1 -1
- data/data/Europe/Zaporozhye +1 -1
- data/data/Europe/Zurich +1 -1
- data/data/Factory +1 -1
- data/data/GB +1 -1
- data/data/GB-Eire +1 -1
- data/data/GMT +1 -1
- data/data/GMT+0 +1 -1
- data/data/GMT-0 +1 -1
- data/data/GMT0 +1 -1
- data/data/Greenwich +1 -1
- data/data/HST +1 -1
- data/data/Hongkong +1 -1
- data/data/Iceland +1 -1
- data/data/Indian/Antananarivo +1 -1
- data/data/Indian/Chagos +1 -1
- data/data/Indian/Christmas +1 -1
- data/data/Indian/Cocos +1 -1
- data/data/Indian/Comoro +1 -1
- data/data/Indian/Kerguelen +1 -1
- data/data/Indian/Mahe +1 -1
- data/data/Indian/Maldives +1 -1
- data/data/Indian/Mauritius +1 -1
- data/data/Indian/Mayotte +1 -1
- data/data/Indian/Reunion +1 -1
- data/data/Iran +1 -1
- data/data/Israel +1 -1
- data/data/Jamaica +1 -1
- data/data/Japan +1 -1
- data/data/Kwajalein +1 -1
- data/data/Libya +1 -1
- data/data/MET +1 -1
- data/data/MST +1 -1
- data/data/MST7MDT +1 -1
- data/data/Mexico/BajaNorte +1 -1
- data/data/Mexico/BajaSur +1 -1
- data/data/Mexico/General +1 -1
- data/data/NZ +1 -1
- data/data/NZ-CHAT +1 -1
- data/data/Navajo +1 -1
- data/data/PRC +1 -1
- data/data/PST8PDT +1 -1
- data/data/Pacific/Apia +1 -1
- data/data/Pacific/Auckland +1 -1
- data/data/Pacific/Bougainville +1 -1
- data/data/Pacific/Chatham +1 -1
- data/data/Pacific/Chuuk +1 -1
- data/data/Pacific/Easter +1 -1
- data/data/Pacific/Efate +1 -1
- data/data/Pacific/Enderbury +1 -1
- data/data/Pacific/Fakaofo +1 -1
- data/data/Pacific/Fiji +1 -1
- data/data/Pacific/Funafuti +1 -1
- data/data/Pacific/Galapagos +1 -1
- data/data/Pacific/Gambier +1 -1
- data/data/Pacific/Guadalcanal +1 -1
- data/data/Pacific/Guam +1 -1
- data/data/Pacific/Honolulu +1 -1
- data/data/Pacific/Johnston +1 -1
- data/data/Pacific/Kiritimati +1 -1
- data/data/Pacific/Kosrae +1 -1
- data/data/Pacific/Kwajalein +1 -1
- data/data/Pacific/Majuro +1 -1
- data/data/Pacific/Marquesas +1 -1
- data/data/Pacific/Midway +1 -1
- data/data/Pacific/Nauru +1 -1
- data/data/Pacific/Niue +1 -1
- data/data/Pacific/Norfolk +1 -1
- data/data/Pacific/Noumea +1 -1
- data/data/Pacific/Pago_Pago +1 -1
- data/data/Pacific/Palau +1 -1
- data/data/Pacific/Pitcairn +1 -1
- data/data/Pacific/Pohnpei +1 -1
- data/data/Pacific/Ponape +1 -1
- data/data/Pacific/Port_Moresby +1 -1
- data/data/Pacific/Rarotonga +1 -1
- data/data/Pacific/Saipan +1 -1
- data/data/Pacific/Samoa +1 -1
- data/data/Pacific/Tahiti +1 -1
- data/data/Pacific/Tarawa +1 -1
- data/data/Pacific/Truk +1 -1
- data/data/Pacific/Wake +1 -1
- data/data/Pacific/Wallis +1 -1
- data/data/Pacific/Yap +1 -1
- data/data/Poland +1 -1
- data/data/Portugal +1 -1
- data/data/ROC +1 -1
- data/data/ROK +1 -1
- data/data/Singapore +1 -1
- data/data/Turkey +1 -1
- data/data/UCT +1 -1
- data/data/US/Alaska +1 -1
- data/data/US/Aleutian +1 -1
- data/data/US/Arizona +1 -1
- data/data/US/Central +1 -1
- data/data/US/East-Indiana +1 -1
- data/data/US/Eastern +1 -1
- data/data/US/Hawaii +1 -1
- data/data/US/Indiana-Starke +1 -1
- data/data/US/Michigan +1 -1
- data/data/US/Mountain +1 -1
- data/data/US/Pacific +1 -1
- data/data/US/Pacific-New +1 -1
- data/data/US/Samoa +1 -1
- data/data/UTC +1 -1
- data/data/Universal +1 -1
- data/data/W-SU +1 -1
- data/data/WET +1 -1
- data/data/Zulu +1 -1
- data/lib/timezone/lookup/test.rb +4 -0
- data/lib/timezone/parser.rb +41 -4
- data/lib/timezone/version.rb +1 -1
- data/lib/timezone/zone.rb +2 -4
- data/test/timezone/lookup/test_test.rb +12 -0
- data/test/timezone/test_loader.rb +1 -1
- data/test/timezone/test_zone.rb +14 -13
- metadata +5 -5
- data/data/Canada/East-Saskatchewan +0 -54
data/lib/timezone/version.rb
CHANGED
data/lib/timezone/zone.rb
CHANGED
@@ -61,7 +61,7 @@ module Timezone
|
|
61
61
|
def utc_to_local(time)
|
62
62
|
time = sanitize(time)
|
63
63
|
|
64
|
-
time
|
64
|
+
(time + utc_offset(time)).utc
|
65
65
|
end
|
66
66
|
|
67
67
|
alias time utc_to_local
|
@@ -109,7 +109,7 @@ module Timezone
|
|
109
109
|
def local_to_utc(time)
|
110
110
|
time = sanitize(time)
|
111
111
|
|
112
|
-
time
|
112
|
+
(time - rule_for_local(time).rules.first[OFFSET_BIT]).utc
|
113
113
|
end
|
114
114
|
|
115
115
|
# Converts the given time to the local timezone and includes the UTC
|
@@ -199,7 +199,6 @@ module Timezone
|
|
199
199
|
private_constant :RuleSet
|
200
200
|
|
201
201
|
def rule_for_local(local)
|
202
|
-
local = local.utc if local.respond_to?(:utc)
|
203
202
|
local = local.to_i
|
204
203
|
|
205
204
|
# For each rule, convert the local time into the UTC equivalent for
|
@@ -245,7 +244,6 @@ module Timezone
|
|
245
244
|
end
|
246
245
|
|
247
246
|
def rule_for_utc(time)
|
248
|
-
time = time.utc if time.respond_to?(:utc)
|
249
247
|
time = time.to_i
|
250
248
|
|
251
249
|
private_rules[binary_search(time) { |t, r| match?(t, r) }]
|
@@ -18,6 +18,18 @@ class TestTest < ::Minitest::Test
|
|
18
18
|
assert_equal 'America/Los_Angeles', mine.lookup(-10, 10)
|
19
19
|
end
|
20
20
|
|
21
|
+
def test_simple_unstub
|
22
|
+
mine = lookup
|
23
|
+
mine.stub(-10, 10, nil)
|
24
|
+
|
25
|
+
assert_nil mine.lookup(-10, 10)
|
26
|
+
|
27
|
+
mine.unstub(-10, 10)
|
28
|
+
assert_raises(::Timezone::Error::Test) do
|
29
|
+
mine.lookup(-10, 10)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
21
33
|
def test_missing_stub
|
22
34
|
assert_raises(::Timezone::Error::Test) do
|
23
35
|
lookup.lookup(100, 100)
|
data/test/timezone/test_zone.rb
CHANGED
@@ -12,11 +12,11 @@ class TestZone < ::Minitest::Test
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def utc_offset(name, year, month, day)
|
15
|
-
zone(name).utc_offset(Time.new(year, month, day))
|
15
|
+
zone(name).utc_offset(Time.new(year, month, day).freeze)
|
16
16
|
end
|
17
17
|
|
18
18
|
def dst?(name, year, month, day)
|
19
|
-
zone(name).dst?(Time.new(year, month, day))
|
19
|
+
zone(name).dst?(Time.new(year, month, day).freeze)
|
20
20
|
end
|
21
21
|
|
22
22
|
def la
|
@@ -33,8 +33,8 @@ class TestZone < ::Minitest::Test
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def test_abbr
|
36
|
-
assert_equal 'PDT', la.abbr(Time.new(2011, 6, 5))
|
37
|
-
assert_equal 'PST', la.abbr(Time.new(2011, 11, 20))
|
36
|
+
assert_equal 'PDT', la.abbr(Time.new(2011, 6, 5).freeze)
|
37
|
+
assert_equal 'PST', la.abbr(Time.new(2011, 11, 20).freeze)
|
38
38
|
end
|
39
39
|
|
40
40
|
def test_valid?
|
@@ -94,7 +94,8 @@ class TestZone < ::Minitest::Test
|
|
94
94
|
end
|
95
95
|
|
96
96
|
def test_gmt_timezone
|
97
|
-
|
97
|
+
t = Time.now.freeze
|
98
|
+
assert_equal t.dup.utc.to_i, zone('GMT').utc_to_local(t).to_i
|
98
99
|
end
|
99
100
|
|
100
101
|
def test_historical_time
|
@@ -187,23 +188,23 @@ class TestZone < ::Minitest::Test
|
|
187
188
|
timezone = zone('America/Los_Angeles')
|
188
189
|
|
189
190
|
# Time maps to two rules - we pick the first
|
190
|
-
local = Time.utc(2015, 11, 1, 1, 50, 0)
|
191
|
-
utc = Time.utc(2015, 11, 1, 8, 50, 0)
|
191
|
+
local = Time.utc(2015, 11, 1, 1, 50, 0).freeze
|
192
|
+
utc = Time.utc(2015, 11, 1, 8, 50, 0).freeze
|
192
193
|
assert_equal(utc.to_s, timezone.local_to_utc(local).to_s)
|
193
194
|
|
194
195
|
# Time is above the maximum - we pick the last rule
|
195
|
-
local = Time.utc(3000, 1, 1, 0, 0, 0)
|
196
|
-
utc = Time.utc(3000, 1, 1, 8, 0, 0)
|
196
|
+
local = Time.utc(3000, 1, 1, 0, 0, 0).freeze
|
197
|
+
utc = Time.utc(3000, 1, 1, 8, 0, 0).freeze
|
197
198
|
assert_equal(utc.to_s, timezone.local_to_utc(local).to_s)
|
198
199
|
|
199
200
|
# Time maps to a single rule - we pick that rule
|
200
|
-
local = Time.utc(2015, 11, 1, 0, 1, 0)
|
201
|
-
utc = Time.utc(2015, 11, 1, 7, 1, 0)
|
201
|
+
local = Time.utc(2015, 11, 1, 0, 1, 0).freeze
|
202
|
+
utc = Time.utc(2015, 11, 1, 7, 1, 0).freeze
|
202
203
|
assert_equal(utc.to_s, timezone.local_to_utc(local).to_s)
|
203
204
|
|
204
205
|
# Time is missing - we pick the first closest rule
|
205
|
-
local = Time.utc(2015, 3, 8, 2, 50, 0)
|
206
|
-
utc = Time.utc(2015, 3, 8, 9, 50, 0)
|
206
|
+
local = Time.utc(2015, 3, 8, 2, 50, 0).freeze
|
207
|
+
utc = Time.utc(2015, 3, 8, 9, 50, 0).freeze
|
207
208
|
assert_equal(utc.to_s, timezone.local_to_utc(local).to_s)
|
208
209
|
end
|
209
210
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: timezone
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pan Thomakos
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -462,7 +462,6 @@ files:
|
|
462
462
|
- data/CST6CDT
|
463
463
|
- data/Canada/Atlantic
|
464
464
|
- data/Canada/Central
|
465
|
-
- data/Canada/East-Saskatchewan
|
466
465
|
- data/Canada/Eastern
|
467
466
|
- data/Canada/Mountain
|
468
467
|
- data/Canada/Newfoundland
|
@@ -745,10 +744,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
745
744
|
version: '0'
|
746
745
|
requirements: []
|
747
746
|
rubyforge_project: timezone
|
748
|
-
rubygems_version: 2.
|
747
|
+
rubygems_version: 2.6.11
|
749
748
|
signing_key:
|
750
749
|
specification_version: 4
|
751
|
-
summary: timezone-1.
|
750
|
+
summary: timezone-1.3.0
|
752
751
|
test_files:
|
753
752
|
- test/data/Helsinki_rules_without_timestamps.json
|
754
753
|
- test/data/asia
|
@@ -777,3 +776,4 @@ test_files:
|
|
777
776
|
- test/timezone/test_mathn_compatibility.rb
|
778
777
|
- test/timezone/test_nil_zone.rb
|
779
778
|
- test/timezone/test_zone.rb
|
779
|
+
has_rdoc:
|
@@ -1,54 +0,0 @@
|
|
1
|
-
-2030202085:LMT:0:-25116
|
2
|
-
398138484:MST:0:-25200
|
3
|
-
16930800:MDT:1:-21600
|
4
|
-
363481200:MST:0:-25200
|
5
|
-
13302000:MDT:1:-21600
|
6
|
-
18147600:MST:0:-25200
|
7
|
-
13302000:MDT:1:-21600
|
8
|
-
18147600:MST:0:-25200
|
9
|
-
13302000:MDT:1:-21600
|
10
|
-
18752400:MST:0:-25200
|
11
|
-
12697200:MDT:1:-21600
|
12
|
-
18752400:MST:0:-25200
|
13
|
-
13302000:MDT:1:-21600
|
14
|
-
79232400:MST:0:-25200
|
15
|
-
15721200:MDT:1:-21600
|
16
|
-
15728400:MST:0:-25200
|
17
|
-
15116400:MDT:1:-21600
|
18
|
-
16333200:MST:0:-25200
|
19
|
-
15721200:MDT:1:-21600
|
20
|
-
16333200:MST:0:-25200
|
21
|
-
15721200:MDT:1:-21600
|
22
|
-
15728400:MST:0:-25200
|
23
|
-
15721200:MDT:1:-21600
|
24
|
-
10378800:MST:0:-25200
|
25
|
-
110815200:MWT:1:-21600
|
26
|
-
4006800:MPT:1:-21600
|
27
|
-
16938000:MST:0:-25200
|
28
|
-
15721200:MDT:1:-21600
|
29
|
-
16938000:MST:0:-25200
|
30
|
-
13302000:MDT:1:-21600
|
31
|
-
18147600:MST:0:-25200
|
32
|
-
13302000:MDT:1:-21600
|
33
|
-
18147600:MST:0:-25200
|
34
|
-
13302000:MDT:1:-21600
|
35
|
-
18752400:MST:0:-25200
|
36
|
-
12697200:MDT:1:-21600
|
37
|
-
18752400:MST:0:-25200
|
38
|
-
13302000:MDT:1:-21600
|
39
|
-
18147600:MST:0:-25200
|
40
|
-
13302000:MDT:1:-21600
|
41
|
-
18147600:MST:0:-25200
|
42
|
-
13302000:MDT:1:-21600
|
43
|
-
18147600:MST:0:-25200
|
44
|
-
13302000:MDT:1:-21600
|
45
|
-
18147600:MST:0:-25200
|
46
|
-
13302000:MDT:1:-21600
|
47
|
-
18752400:MST:0:-25200
|
48
|
-
13302000:MDT:1:-21600
|
49
|
-
18147600:MST:0:-25200
|
50
|
-
13302000:MDT:1:-21600
|
51
|
-
49597200:MST:0:-25200
|
52
|
-
15721200:MDT:1:-21600
|
53
|
-
15728400:MST:0:-25200
|
54
|
-
1788966001:CST:0:-21600
|