@@ -53,8 +53,7 @@ discard block |
||
53 | 53 | if ($this->multipart) { |
54 | 54 | header("Content-Type: application/vnd.ms-sync.multipart"); |
55 | 55 | SLog::Write(LOGLEVEL_DEBUG, "WBXMLEncoder->startWBXML() type: vnd.ms-sync.multipart"); |
56 | - } |
|
57 | - else { |
|
56 | + } else { |
|
58 | 57 | header("Content-Type: application/vnd.ms-sync.wbxml"); |
59 | 58 | SLog::Write(LOGLEVEL_DEBUG, "WBXMLEncoder->startWBXML() type: vnd.ms-sync.wbxml"); |
60 | 59 | } |
@@ -86,8 +85,7 @@ discard block |
||
86 | 85 | |
87 | 86 | // If 'nocontent' is specified, then apparently the user wants to force |
88 | 87 | // output of an empty tag, and we therefore output the stack here |
89 | - } |
|
90 | - else { |
|
88 | + } else { |
|
91 | 89 | $this->_outputStack(); |
92 | 90 | $this->_startTag($tag, $nocontent); |
93 | 91 | } |
@@ -274,8 +272,7 @@ discard block |
||
274 | 272 | if ($opaque) { |
275 | 273 | $this->outByte(self::WBXML_OPAQUE); |
276 | 274 | $this->outMBUInt($stat['size']); |
277 | - } |
|
278 | - else { |
|
275 | + } else { |
|
279 | 276 | $this->outByte(self::WBXML_STR_I); |
280 | 277 | } |
281 | 278 | |
@@ -344,8 +341,7 @@ discard block |
||
344 | 341 | $uint = $uint >> 7; |
345 | 342 | if ($i == 0) { |
346 | 343 | $out = chr($byte) . $out; |
347 | - } |
|
348 | - else { |
|
344 | + } else { |
|
349 | 345 | $out = chr($byte | 0x80) . $out; |
350 | 346 | } |
351 | 347 | } |
@@ -390,8 +386,7 @@ discard block |
||
390 | 386 | |
391 | 387 | if (isset($split["ns"])) { |
392 | 388 | $cp = $this->_dtd["namespaces"][$split["ns"]]; |
393 | - } |
|
394 | - else { |
|
389 | + } else { |
|
395 | 390 | $cp = 0; |
396 | 391 | } |
397 | 392 | |
@@ -417,8 +412,7 @@ discard block |
||
417 | 412 | if ($pos) { |
418 | 413 | $ns = substr($fulltag, 0, $pos); |
419 | 414 | $tag = substr($fulltag, $pos + 1); |
420 | - } |
|
421 | - else { |
|
415 | + } else { |
|
422 | 416 | $tag = $fulltag; |
423 | 417 | } |
424 | 418 | |
@@ -443,8 +437,7 @@ discard block |
||
443 | 437 | $spaces = str_repeat(" ", count($this->logStack)); |
444 | 438 | if ($nocontent) { |
445 | 439 | SLog::Write(LOGLEVEL_WBXML, "O " . $spaces . " <{$tag}/>"); |
446 | - } |
|
447 | - else { |
|
440 | + } else { |
|
448 | 441 | array_push($this->logStack, $tag); |
449 | 442 | SLog::Write(LOGLEVEL_WBXML, "O " . $spaces . " <{$tag}>"); |
450 | 443 | } |
@@ -509,11 +502,9 @@ discard block |
||
509 | 502 | private function writeLog() { |
510 | 503 | if (ob_get_length() === false) { |
511 | 504 | $data = "output buffer disabled"; |
512 | - } |
|
513 | - elseif (ob_get_length() < 524288) { |
|
505 | + } elseif (ob_get_length() < 524288) { |
|
514 | 506 | $data = base64_encode(ob_get_contents()); |
515 | - } |
|
516 | - else { |
|
507 | + } else { |
|
517 | 508 | $data = "more than 512K of data"; |
518 | 509 | } |
519 | 510 | SLog::Write(LOGLEVEL_WBXML, "WBXML-OUT: " . $data, false); |
@@ -346,7 +346,7 @@ |
||
346 | 346 | $out = chr($byte) . $out; |
347 | 347 | } |
348 | 348 | else { |
349 | - $out = chr($byte | 0x80) . $out; |
|
349 | + $out = chr($byte|0x80) . $out; |
|
350 | 350 | } |
351 | 351 | } |
352 | 352 | fwrite($this->_out, $out); |
@@ -207,8 +207,7 @@ |
||
207 | 207 | header($protocol . ' ' . $code . ' ' . $text); |
208 | 208 | |
209 | 209 | $GLOBALS['http_response_code'] = $code; |
210 | - } |
|
211 | - else { |
|
210 | + } else { |
|
212 | 211 | $code = (isset($GLOBALS['http_response_code']) ? $GLOBALS['http_response_code'] : 200); |
213 | 212 | } |
214 | 213 |
@@ -1120,8 +1120,7 @@ |
||
1120 | 1120 | SLog::Write(LOGLEVEL_DEBUG, "TimezoneUtil::FillTZNames() filling up bias " . $tz["bias"]); |
1121 | 1121 | if (!isset($tz["bias"])) { |
1122 | 1122 | SLog::Write(LOGLEVEL_WARN, "TimezoneUtil::FillTZNames() submitted TZ array does not have a bias"); |
1123 | - } |
|
1124 | - else { |
|
1123 | + } else { |
|
1125 | 1124 | $tzname = self::guessTZNameFromOffset($tz); |
1126 | 1125 | $tz['tzname'] = $tz['tznamedst'] = self::encodeTZName(self::getMSTZnameFromTZName($tzname)); |
1127 | 1126 | } |
@@ -17,83 +17,83 @@ discard block |
||
17 | 17 | * Updated at: 01.06.2012 |
18 | 18 | */ |
19 | 19 | private static $mstzones = [ |
20 | - "000" => ["Dateline Standard Time", "(GMT-12:00) International Date Line West"], |
|
21 | - "001" => ["Samoa Standard Time", "(GMT-11:00) Midway Island, Samoa"], |
|
22 | - "002" => ["Hawaiian Standard Time", "(GMT-10:00) Hawaii"], |
|
23 | - "003" => ["Alaskan Standard Time", "(GMT-09:00) Alaska"], |
|
24 | - "004" => ["Pacific Standard Time", "(GMT-08:00) Pacific Time (US and Canada); Tijuana"], |
|
25 | - "010" => ["Mountain Standard Time", "(GMT-07:00) Mountain Time (US and Canada)"], |
|
26 | - "013" => ["Mexico Standard Time 2", "(GMT-07:00) Chihuahua, La Paz, Mazatlan"], |
|
27 | - "015" => ["US Mountain Standard Time", "(GMT-07:00) Arizona"], |
|
28 | - "020" => ["Central Standard Time", "(GMT-06:00) Central Time (US and Canada"], |
|
29 | - "025" => ["Canada Central Standard Time", "(GMT-06:00) Saskatchewan"], |
|
30 | - "030" => ["Mexico Standard Time", "(GMT-06:00) Guadalajara, Mexico City, Monterrey"], |
|
31 | - "033" => ["Central America Standard Time", "(GMT-06:00) Central America"], |
|
32 | - "035" => ["Eastern Standard Time", "(GMT-05:00) Eastern Time (US and Canada)"], |
|
33 | - "040" => ["US Eastern Standard Time", "(GMT-05:00) Indiana (East)"], |
|
34 | - "045" => ["SA Pacific Standard Time", "(GMT-05:00) Bogota, Lima, Quito"], |
|
35 | - "uk1" => ["Venezuela Standard Time", "(GMT-04:30) Caracas"], // added |
|
36 | - "050" => ["Atlantic Standard Time", "(GMT-04:00) Atlantic Time (Canada)"], |
|
37 | - "055" => ["SA Western Standard Time", "(GMT-04:00) Caracas, La Paz"], |
|
38 | - "056" => ["Pacific SA Standard Time", "(GMT-04:00) Santiago"], |
|
39 | - "060" => ["Newfoundland and Labrador Standard Time", "(GMT-03:30) Newfoundland and Labrador"], |
|
40 | - "065" => ["E South America Standard Time", "(GMT-03:00) Brasilia"], |
|
41 | - "070" => ["SA Eastern Standard Time", "(GMT-03:00) Buenos Aires, Georgetown"], |
|
42 | - "073" => ["Greenland Standard Time", "(GMT-03:00) Greenland"], |
|
43 | - "075" => ["Mid-Atlantic Standard Time", "(GMT-02:00) Mid-Atlantic"], |
|
44 | - "080" => ["Azores Standard Time", "(GMT-01:00) Azores"], |
|
45 | - "083" => ["Cape Verde Standard Time", "(GMT-01:00) Cape Verde Islands"], |
|
46 | - "085" => ["GMT Standard Time", "(GMT) Greenwich Mean Time: Dublin, Edinburgh, Lisbon, London"], |
|
47 | - "090" => ["Greenwich Standard Time", "(GMT) Casablanca, Monrovia"], |
|
48 | - "095" => ["Central Europe Standard Time", "(GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague"], |
|
49 | - "100" => ["Central European Standard Time", "(GMT+01:00) Sarajevo, Skopje, Warsaw, Zagreb"], |
|
50 | - "105" => ["Romance Standard Time", "(GMT+01:00) Brussels, Copenhagen, Madrid, Paris"], |
|
51 | - "110" => ["W Europe Standard Time", "(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna"], |
|
52 | - "111" => ["W. Europe Standard Time", "(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna"], |
|
53 | - "113" => ["W Central Africa Standard Time", "(GMT+01:00) West Central Africa"], |
|
54 | - "115" => ["E Europe Standard Time", "(GMT+02:00) Bucharest"], |
|
55 | - "120" => ["Egypt Standard Time", "(GMT+02:00) Cairo"], |
|
56 | - "125" => ["FLE Standard Time", "(GMT+02:00) Helsinki, Kiev, Riga, Sofia, Tallinn, Vilnius"], |
|
57 | - "130" => ["GTB Standard Time", "(GMT+02:00) Athens, Istanbul, Minsk"], |
|
58 | - "135" => ["Israel Standard Time", "(GMT+02:00) Jerusalem"], |
|
59 | - "140" => ["South Africa Standard Time", "(GMT+02:00) Harare, Pretoria"], |
|
60 | - "145" => ["Russian Standard Time", "(GMT+03:00) Moscow, St. Petersburg, Volgograd"], |
|
61 | - "150" => ["Arab Standard Time", "(GMT+03:00) Kuwait, Riyadh"], |
|
62 | - "155" => ["E Africa Standard Time", "(GMT+03:00) Nairobi"], |
|
63 | - "158" => ["Arabic Standard Time", "(GMT+03:00) Baghdad"], |
|
64 | - "160" => ["Iran Standard Time", "(GMT+03:30) Tehran"], |
|
65 | - "165" => ["Arabian Standard Time", "(GMT+04:00) Abu Dhabi, Muscat"], |
|
66 | - "170" => ["Caucasus Standard Time", "(GMT+04:00) Baku, Tbilisi, Yerevan"], |
|
20 | + "000" => ["Dateline Standard Time", "(GMT-12:00) International Date Line West"], |
|
21 | + "001" => ["Samoa Standard Time", "(GMT-11:00) Midway Island, Samoa"], |
|
22 | + "002" => ["Hawaiian Standard Time", "(GMT-10:00) Hawaii"], |
|
23 | + "003" => ["Alaskan Standard Time", "(GMT-09:00) Alaska"], |
|
24 | + "004" => ["Pacific Standard Time", "(GMT-08:00) Pacific Time (US and Canada); Tijuana"], |
|
25 | + "010" => ["Mountain Standard Time", "(GMT-07:00) Mountain Time (US and Canada)"], |
|
26 | + "013" => ["Mexico Standard Time 2", "(GMT-07:00) Chihuahua, La Paz, Mazatlan"], |
|
27 | + "015" => ["US Mountain Standard Time", "(GMT-07:00) Arizona"], |
|
28 | + "020" => ["Central Standard Time", "(GMT-06:00) Central Time (US and Canada"], |
|
29 | + "025" => ["Canada Central Standard Time", "(GMT-06:00) Saskatchewan"], |
|
30 | + "030" => ["Mexico Standard Time", "(GMT-06:00) Guadalajara, Mexico City, Monterrey"], |
|
31 | + "033" => ["Central America Standard Time", "(GMT-06:00) Central America"], |
|
32 | + "035" => ["Eastern Standard Time", "(GMT-05:00) Eastern Time (US and Canada)"], |
|
33 | + "040" => ["US Eastern Standard Time", "(GMT-05:00) Indiana (East)"], |
|
34 | + "045" => ["SA Pacific Standard Time", "(GMT-05:00) Bogota, Lima, Quito"], |
|
35 | + "uk1" => ["Venezuela Standard Time", "(GMT-04:30) Caracas"], // added |
|
36 | + "050" => ["Atlantic Standard Time", "(GMT-04:00) Atlantic Time (Canada)"], |
|
37 | + "055" => ["SA Western Standard Time", "(GMT-04:00) Caracas, La Paz"], |
|
38 | + "056" => ["Pacific SA Standard Time", "(GMT-04:00) Santiago"], |
|
39 | + "060" => ["Newfoundland and Labrador Standard Time", "(GMT-03:30) Newfoundland and Labrador"], |
|
40 | + "065" => ["E South America Standard Time", "(GMT-03:00) Brasilia"], |
|
41 | + "070" => ["SA Eastern Standard Time", "(GMT-03:00) Buenos Aires, Georgetown"], |
|
42 | + "073" => ["Greenland Standard Time", "(GMT-03:00) Greenland"], |
|
43 | + "075" => ["Mid-Atlantic Standard Time", "(GMT-02:00) Mid-Atlantic"], |
|
44 | + "080" => ["Azores Standard Time", "(GMT-01:00) Azores"], |
|
45 | + "083" => ["Cape Verde Standard Time", "(GMT-01:00) Cape Verde Islands"], |
|
46 | + "085" => ["GMT Standard Time", "(GMT) Greenwich Mean Time: Dublin, Edinburgh, Lisbon, London"], |
|
47 | + "090" => ["Greenwich Standard Time", "(GMT) Casablanca, Monrovia"], |
|
48 | + "095" => ["Central Europe Standard Time", "(GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague"], |
|
49 | + "100" => ["Central European Standard Time", "(GMT+01:00) Sarajevo, Skopje, Warsaw, Zagreb"], |
|
50 | + "105" => ["Romance Standard Time", "(GMT+01:00) Brussels, Copenhagen, Madrid, Paris"], |
|
51 | + "110" => ["W Europe Standard Time", "(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna"], |
|
52 | + "111" => ["W. Europe Standard Time", "(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna"], |
|
53 | + "113" => ["W Central Africa Standard Time", "(GMT+01:00) West Central Africa"], |
|
54 | + "115" => ["E Europe Standard Time", "(GMT+02:00) Bucharest"], |
|
55 | + "120" => ["Egypt Standard Time", "(GMT+02:00) Cairo"], |
|
56 | + "125" => ["FLE Standard Time", "(GMT+02:00) Helsinki, Kiev, Riga, Sofia, Tallinn, Vilnius"], |
|
57 | + "130" => ["GTB Standard Time", "(GMT+02:00) Athens, Istanbul, Minsk"], |
|
58 | + "135" => ["Israel Standard Time", "(GMT+02:00) Jerusalem"], |
|
59 | + "140" => ["South Africa Standard Time", "(GMT+02:00) Harare, Pretoria"], |
|
60 | + "145" => ["Russian Standard Time", "(GMT+03:00) Moscow, St. Petersburg, Volgograd"], |
|
61 | + "150" => ["Arab Standard Time", "(GMT+03:00) Kuwait, Riyadh"], |
|
62 | + "155" => ["E Africa Standard Time", "(GMT+03:00) Nairobi"], |
|
63 | + "158" => ["Arabic Standard Time", "(GMT+03:00) Baghdad"], |
|
64 | + "160" => ["Iran Standard Time", "(GMT+03:30) Tehran"], |
|
65 | + "165" => ["Arabian Standard Time", "(GMT+04:00) Abu Dhabi, Muscat"], |
|
66 | + "170" => ["Caucasus Standard Time", "(GMT+04:00) Baku, Tbilisi, Yerevan"], |
|
67 | 67 | "175" => ["Transitional Islamic State of Afghanistan Standard Time", "(GMT+04:30) Kabul"], |
68 | - "180" => ["Ekaterinburg Standard Time", "(GMT+05:00) Ekaterinburg"], |
|
69 | - "185" => ["West Asia Standard Time", "(GMT+05:00) Islamabad, Karachi, Tashkent"], |
|
70 | - "190" => ["India Standard Time", "(GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi"], |
|
71 | - "193" => ["Nepal Standard Time", "(GMT+05:45) Kathmandu"], |
|
72 | - "195" => ["Central Asia Standard Time", "(GMT+06:00) Astana, Dhaka"], |
|
73 | - "200" => ["Sri Lanka Standard Time", "(GMT+06:00) Sri Jayawardenepura"], |
|
74 | - "201" => ["N Central Asia Standard Time", "(GMT+06:00) Almaty, Novosibirsk"], |
|
75 | - "203" => ["Myanmar Standard Time", "(GMT+06:30) Yangon Rangoon"], |
|
76 | - "205" => ["SE Asia Standard Time", "(GMT+07:00) Bangkok, Hanoi, Jakarta"], |
|
77 | - "207" => ["North Asia Standard Time", "(GMT+07:00) Krasnoyarsk"], |
|
78 | - "210" => ["China Standard Time", "(GMT+08:00) Beijing, Chongqing, Hong Kong SAR, Urumqi"], |
|
79 | - "215" => ["Singapore Standard Time", "(GMT+08:00) Kuala Lumpur, Singapore"], |
|
80 | - "220" => ["Taipei Standard Time", "(GMT+08:00) Taipei"], |
|
81 | - "225" => ["W Australia Standard Time", "(GMT+08:00) Perth"], |
|
82 | - "227" => ["North Asia East Standard Time", "(GMT+08:00) Irkutsk, Ulaanbaatar"], |
|
83 | - "230" => ["Korea Standard Time", "(GMT+09:00) Seoul"], |
|
84 | - "235" => ["Tokyo Standard Time", "(GMT+09:00) Osaka, Sapporo, Tokyo"], |
|
85 | - "240" => ["Yakutsk Standard Time", "(GMT+09:00) Yakutsk"], |
|
86 | - "245" => ["AUS Central Standard Time", "(GMT+09:30) Darwin"], |
|
87 | - "250" => ["Cen Australia Standard Time", "(GMT+09:30) Adelaide"], |
|
88 | - "255" => ["AUS Eastern Standard Time", "(GMT+10:00) Canberra, Melbourne, Sydney"], |
|
89 | - "260" => ["E Australia Standard Time", "(GMT+10:00) Brisbane"], |
|
90 | - "265" => ["Tasmania Standard Time", "(GMT+10:00) Hobart"], |
|
91 | - "270" => ["Vladivostok Standard Time", "(GMT+10:00) Vladivostok"], |
|
92 | - "275" => ["West Pacific Standard Time", "(GMT+10:00) Guam, Port Moresby"], |
|
93 | - "280" => ["Central Pacific Standard Time", "(GMT+11:00) Magadan, Solomon Islands, New Caledonia"], |
|
94 | - "285" => ["Fiji Islands Standard Time", "(GMT+12:00) Fiji Islands, Kamchatka, Marshall Islands"], |
|
95 | - "290" => ["New Zealand Standard Time", "(GMT+12:00) Auckland, Wellington"], |
|
96 | - "300" => ["Tonga Standard Time", "(GMT+13:00) Nuku'alofa"], |
|
68 | + "180" => ["Ekaterinburg Standard Time", "(GMT+05:00) Ekaterinburg"], |
|
69 | + "185" => ["West Asia Standard Time", "(GMT+05:00) Islamabad, Karachi, Tashkent"], |
|
70 | + "190" => ["India Standard Time", "(GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi"], |
|
71 | + "193" => ["Nepal Standard Time", "(GMT+05:45) Kathmandu"], |
|
72 | + "195" => ["Central Asia Standard Time", "(GMT+06:00) Astana, Dhaka"], |
|
73 | + "200" => ["Sri Lanka Standard Time", "(GMT+06:00) Sri Jayawardenepura"], |
|
74 | + "201" => ["N Central Asia Standard Time", "(GMT+06:00) Almaty, Novosibirsk"], |
|
75 | + "203" => ["Myanmar Standard Time", "(GMT+06:30) Yangon Rangoon"], |
|
76 | + "205" => ["SE Asia Standard Time", "(GMT+07:00) Bangkok, Hanoi, Jakarta"], |
|
77 | + "207" => ["North Asia Standard Time", "(GMT+07:00) Krasnoyarsk"], |
|
78 | + "210" => ["China Standard Time", "(GMT+08:00) Beijing, Chongqing, Hong Kong SAR, Urumqi"], |
|
79 | + "215" => ["Singapore Standard Time", "(GMT+08:00) Kuala Lumpur, Singapore"], |
|
80 | + "220" => ["Taipei Standard Time", "(GMT+08:00) Taipei"], |
|
81 | + "225" => ["W Australia Standard Time", "(GMT+08:00) Perth"], |
|
82 | + "227" => ["North Asia East Standard Time", "(GMT+08:00) Irkutsk, Ulaanbaatar"], |
|
83 | + "230" => ["Korea Standard Time", "(GMT+09:00) Seoul"], |
|
84 | + "235" => ["Tokyo Standard Time", "(GMT+09:00) Osaka, Sapporo, Tokyo"], |
|
85 | + "240" => ["Yakutsk Standard Time", "(GMT+09:00) Yakutsk"], |
|
86 | + "245" => ["AUS Central Standard Time", "(GMT+09:30) Darwin"], |
|
87 | + "250" => ["Cen Australia Standard Time", "(GMT+09:30) Adelaide"], |
|
88 | + "255" => ["AUS Eastern Standard Time", "(GMT+10:00) Canberra, Melbourne, Sydney"], |
|
89 | + "260" => ["E Australia Standard Time", "(GMT+10:00) Brisbane"], |
|
90 | + "265" => ["Tasmania Standard Time", "(GMT+10:00) Hobart"], |
|
91 | + "270" => ["Vladivostok Standard Time", "(GMT+10:00) Vladivostok"], |
|
92 | + "275" => ["West Pacific Standard Time", "(GMT+10:00) Guam, Port Moresby"], |
|
93 | + "280" => ["Central Pacific Standard Time", "(GMT+11:00) Magadan, Solomon Islands, New Caledonia"], |
|
94 | + "285" => ["Fiji Islands Standard Time", "(GMT+12:00) Fiji Islands, Kamchatka, Marshall Islands"], |
|
95 | + "290" => ["New Zealand Standard Time", "(GMT+12:00) Auckland, Wellington"], |
|
96 | + "300" => ["Tonga Standard Time", "(GMT+13:00) Nuku'alofa"], |
|
97 | 97 | ]; |
98 | 98 | |
99 | 99 | /** |
@@ -127,104 +127,104 @@ discard block |
||
127 | 127 | * Created at: 01.06.2012 |
128 | 128 | */ |
129 | 129 | private static $tzonesoffsets = [ |
130 | - "Transitional Islamic State of Afghanistan Standard Time" => [-270, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
131 | - "Alaskan Standard Time" => [540, 0, -60, 0, 11, 0, 1, 2, 0, 0, 0, 0, 3, 0, 2, 2, 0, 0, 0], |
|
132 | - "Arab Standard Time" => [-180, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
133 | - "Arabian Standard Time" => [-240, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
134 | - "Arabic Standard Time" => [-180, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
130 | + "Transitional Islamic State of Afghanistan Standard Time" => [-270, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
131 | + "Alaskan Standard Time" => [540, 0, -60, 0, 11, 0, 1, 2, 0, 0, 0, 0, 3, 0, 2, 2, 0, 0, 0], |
|
132 | + "Arab Standard Time" => [-180, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
133 | + "Arabian Standard Time" => [-240, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
134 | + "Arabic Standard Time" => [-180, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
135 | 135 | // "Argentina Standard Time" => array(180, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), |
136 | - "Atlantic Standard Time" => [240, 0, -60, 0, 11, 0, 1, 2, 0, 0, 0, 0, 3, 0, 2, 2, 0, 0, 0], |
|
137 | - "AUS Central Standard Time" => [-570, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
138 | - "AUS Eastern Standard Time" => [-600, 0, -60, 0, 4, 0, 1, 3, 0, 0, 0, 0, 10, 0, 1, 2, 0, 0, 0], |
|
136 | + "Atlantic Standard Time" => [240, 0, -60, 0, 11, 0, 1, 2, 0, 0, 0, 0, 3, 0, 2, 2, 0, 0, 0], |
|
137 | + "AUS Central Standard Time" => [-570, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
138 | + "AUS Eastern Standard Time" => [-600, 0, -60, 0, 4, 0, 1, 3, 0, 0, 0, 0, 10, 0, 1, 2, 0, 0, 0], |
|
139 | 139 | // "Azerbaijan Standard Time" => array(-240, 0, -60, 0, 10, 0, 5, 5, 0, 0, 0, 0, 3, 0, 5, 4, 0, 0, 0), |
140 | - "Azores Standard Time" => [60, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0], |
|
140 | + "Azores Standard Time" => [60, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0], |
|
141 | 141 | // "Bangladesh Standard Time" => array(-360, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), |
142 | - "Canada Central Standard Time" => [360, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
143 | - "Cape Verde Standard Time" => [60, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
144 | - "Caucasus Standard Time" => [-240, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0], |
|
145 | - "Cen Australia Standard Time" => [-570, 0, -60, 0, 4, 0, 1, 3, 0, 0, 0, 0, 10, 0, 1, 2, 0, 0, 0], |
|
146 | - "Central America Standard Time" => [360, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
147 | - "Central Asia Standard Time" => [-360, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
142 | + "Canada Central Standard Time" => [360, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
143 | + "Cape Verde Standard Time" => [60, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
144 | + "Caucasus Standard Time" => [-240, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0], |
|
145 | + "Cen Australia Standard Time" => [-570, 0, -60, 0, 4, 0, 1, 3, 0, 0, 0, 0, 10, 0, 1, 2, 0, 0, 0], |
|
146 | + "Central America Standard Time" => [360, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
147 | + "Central Asia Standard Time" => [-360, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
148 | 148 | // "Central Brazilian Standard Time" => array(240, 0, -60, 0, 2, 6, 4, 23, 59, 59, 999, 0, 10, 6, 3, 23, 59, 59, 999), |
149 | - "Central Europe Standard Time" => [-60, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0], |
|
150 | - "Central European Standard Time" => [-60, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0], |
|
151 | - "Central Pacific Standard Time" => [-660, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
152 | - "Central Standard Time" => [360, 0, -60, 0, 11, 0, 1, 2, 0, 0, 0, 0, 3, 0, 2, 2, 0, 0, 0], |
|
153 | - "Mexico Standard Time" => [360, 0, -60, 0, 10, 0, 5, 2, 0, 0, 0, 0, 4, 0, 1, 2, 0, 0, 0], |
|
154 | - "China Standard Time" => [-480, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
155 | - "Dateline Standard Time" => [720, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
156 | - "E Africa Standard Time" => [-180, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
157 | - "E Australia Standard Time" => [-600, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
158 | - "E Europe Standard Time" => [-120, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0], |
|
159 | - "E South America Standard Time" => [180, 0, -60, 0, 2, 6, 4, 23, 59, 59, 999, 0, 10, 6, 3, 23, 59, 59, 999], |
|
160 | - "Eastern Standard Time" => [300, 0, -60, 0, 11, 0, 1, 2, 0, 0, 0, 0, 3, 0, 2, 2, 0, 0, 0], |
|
161 | - "Egypt Standard Time" => [-120, 0, -60, 0, 9, 4, 5, 23, 59, 59, 999, 0, 4, 4, 5, 23, 59, 59, 999], |
|
162 | - "Ekaterinburg Standard Time" => [-300, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0], |
|
163 | - "Fiji Islands Standard Time" => [-720, 0, -60, 0, 3, 0, 5, 3, 0, 0, 0, 0, 10, 0, 4, 2, 0, 0, 0], |
|
164 | - "FLE Standard Time" => [-120, 0, -60, 0, 10, 0, 5, 4, 0, 0, 0, 0, 3, 0, 5, 3, 0, 0, 0], |
|
149 | + "Central Europe Standard Time" => [-60, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0], |
|
150 | + "Central European Standard Time" => [-60, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0], |
|
151 | + "Central Pacific Standard Time" => [-660, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
152 | + "Central Standard Time" => [360, 0, -60, 0, 11, 0, 1, 2, 0, 0, 0, 0, 3, 0, 2, 2, 0, 0, 0], |
|
153 | + "Mexico Standard Time" => [360, 0, -60, 0, 10, 0, 5, 2, 0, 0, 0, 0, 4, 0, 1, 2, 0, 0, 0], |
|
154 | + "China Standard Time" => [-480, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
155 | + "Dateline Standard Time" => [720, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
156 | + "E Africa Standard Time" => [-180, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
157 | + "E Australia Standard Time" => [-600, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
158 | + "E Europe Standard Time" => [-120, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0], |
|
159 | + "E South America Standard Time" => [180, 0, -60, 0, 2, 6, 4, 23, 59, 59, 999, 0, 10, 6, 3, 23, 59, 59, 999], |
|
160 | + "Eastern Standard Time" => [300, 0, -60, 0, 11, 0, 1, 2, 0, 0, 0, 0, 3, 0, 2, 2, 0, 0, 0], |
|
161 | + "Egypt Standard Time" => [-120, 0, -60, 0, 9, 4, 5, 23, 59, 59, 999, 0, 4, 4, 5, 23, 59, 59, 999], |
|
162 | + "Ekaterinburg Standard Time" => [-300, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0], |
|
163 | + "Fiji Islands Standard Time" => [-720, 0, -60, 0, 3, 0, 5, 3, 0, 0, 0, 0, 10, 0, 4, 2, 0, 0, 0], |
|
164 | + "FLE Standard Time" => [-120, 0, -60, 0, 10, 0, 5, 4, 0, 0, 0, 0, 3, 0, 5, 3, 0, 0, 0], |
|
165 | 165 | // "Georgian Standard Time" => array(-240, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), |
166 | - "GMT Standard Time" => [0, 0, -60, 0, 10, 0, 5, 2, 0, 0, 0, 0, 3, 0, 5, 1, 0, 0, 0], |
|
167 | - "Greenland Standard Time" => [180, 0, -60, 0, 10, 6, 5, 23, 0, 0, 0, 0, 3, 6, 4, 22, 0, 0, 0], |
|
168 | - "Greenwich Standard Time" => [0, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
169 | - "GTB Standard Time" => [-120, 0, -60, 0, 10, 0, 5, 4, 0, 0, 0, 0, 3, 0, 5, 3, 0, 0, 0], |
|
170 | - "Hawaiian Standard Time" => [600, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
171 | - "India Standard Time" => [-330, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
172 | - "Iran Standard Time" => [-210, 0, -60, 0, 9, 1, 3, 23, 59, 59, 999, 0, 3, 6, 3, 23, 59, 59, 999], |
|
173 | - "Israel Standard Time" => [-120, 0, -60, 0, 9, 0, 4, 2, 0, 0, 0, 0, 3, 5, 5, 2, 0, 0, 0], |
|
166 | + "GMT Standard Time" => [0, 0, -60, 0, 10, 0, 5, 2, 0, 0, 0, 0, 3, 0, 5, 1, 0, 0, 0], |
|
167 | + "Greenland Standard Time" => [180, 0, -60, 0, 10, 6, 5, 23, 0, 0, 0, 0, 3, 6, 4, 22, 0, 0, 0], |
|
168 | + "Greenwich Standard Time" => [0, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
169 | + "GTB Standard Time" => [-120, 0, -60, 0, 10, 0, 5, 4, 0, 0, 0, 0, 3, 0, 5, 3, 0, 0, 0], |
|
170 | + "Hawaiian Standard Time" => [600, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
171 | + "India Standard Time" => [-330, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
172 | + "Iran Standard Time" => [-210, 0, -60, 0, 9, 1, 3, 23, 59, 59, 999, 0, 3, 6, 3, 23, 59, 59, 999], |
|
173 | + "Israel Standard Time" => [-120, 0, -60, 0, 9, 0, 4, 2, 0, 0, 0, 0, 3, 5, 5, 2, 0, 0, 0], |
|
174 | 174 | // "Jordan Standard Time" => array(-120, 0, -60, 0, 10, 5, 5, 1, 0, 0, 0, 0, 3, 4, 5, 23, 59, 59, 999), |
175 | 175 | // "Kamchatka Standard Time" => array(-720, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0), |
176 | - "Korea Standard Time" => [-540, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
176 | + "Korea Standard Time" => [-540, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
177 | 177 | // "Magadan Standard Time" => array(-660, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0), |
178 | 178 | // "Mauritius Standard Time" => array(-240, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), |
179 | - "Mid-Atlantic Standard Time" => [120, 0, -60, 0, 9, 0, 5, 2, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0], |
|
179 | + "Mid-Atlantic Standard Time" => [120, 0, -60, 0, 9, 0, 5, 2, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0], |
|
180 | 180 | // "Middle East Standard Time" => array(-120, 0, -60, 0, 10, 6, 5, 23, 59, 59, 999, 0, 3, 6, 4, 23, 59, 59, 999), |
181 | 181 | // "Montevideo Standard Time" => array(180, 0, -60, 0, 3, 0, 2, 2, 0, 0, 0, 0, 10, 0, 1, 2, 0, 0, 0), |
182 | 182 | // "Morocco Standard Time" => array(0, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), |
183 | - "Mountain Standard Time" => [420, 0, -60, 0, 11, 0, 1, 2, 0, 0, 0, 0, 3, 0, 2, 2, 0, 0, 0], |
|
184 | - "Mexico Standard Time 2" => [420, 0, -60, 0, 10, 0, 5, 2, 0, 0, 0, 0, 4, 0, 1, 2, 0, 0, 0], |
|
185 | - "Myanmar Standard Time" => [-390, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
186 | - "N Central Asia Standard Time" => [-360, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0], |
|
183 | + "Mountain Standard Time" => [420, 0, -60, 0, 11, 0, 1, 2, 0, 0, 0, 0, 3, 0, 2, 2, 0, 0, 0], |
|
184 | + "Mexico Standard Time 2" => [420, 0, -60, 0, 10, 0, 5, 2, 0, 0, 0, 0, 4, 0, 1, 2, 0, 0, 0], |
|
185 | + "Myanmar Standard Time" => [-390, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
186 | + "N Central Asia Standard Time" => [-360, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0], |
|
187 | 187 | // "Namibia Standard Time" => array(-60, 0, -60, 0, 4, 0, 1, 2, 0, 0, 0, 0, 9, 0, 1, 2, 0, 0, 0), |
188 | - "Nepal Standard Time" => [-345, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
189 | - "New Zealand Standard Time" => [-720, 0, -60, 0, 4, 0, 1, 3, 0, 0, 0, 0, 9, 0, 5, 2, 0, 0, 0], |
|
190 | - "Newfoundland and Labrador Standard Time" => [210, 0, -60, 0, 11, 0, 1, 0, 1, 0, 0, 0, 3, 0, 2, 0, 1, 0, 0], |
|
191 | - "North Asia East Standard Time" => [-480, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0], |
|
192 | - "North Asia Standard Time" => [-420, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0], |
|
193 | - "Pacific SA Standard Time" => [240, 0, -60, 0, 3, 6, 2, 23, 59, 59, 999, 0, 10, 6, 2, 23, 59, 59, 999], |
|
194 | - "Pacific Standard Time" => [480, 0, -60, 0, 11, 0, 1, 2, 0, 0, 0, 0, 3, 0, 2, 2, 0, 0, 0], |
|
188 | + "Nepal Standard Time" => [-345, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
189 | + "New Zealand Standard Time" => [-720, 0, -60, 0, 4, 0, 1, 3, 0, 0, 0, 0, 9, 0, 5, 2, 0, 0, 0], |
|
190 | + "Newfoundland and Labrador Standard Time" => [210, 0, -60, 0, 11, 0, 1, 0, 1, 0, 0, 0, 3, 0, 2, 0, 1, 0, 0], |
|
191 | + "North Asia East Standard Time" => [-480, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0], |
|
192 | + "North Asia Standard Time" => [-420, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0], |
|
193 | + "Pacific SA Standard Time" => [240, 0, -60, 0, 3, 6, 2, 23, 59, 59, 999, 0, 10, 6, 2, 23, 59, 59, 999], |
|
194 | + "Pacific Standard Time" => [480, 0, -60, 0, 11, 0, 1, 2, 0, 0, 0, 0, 3, 0, 2, 2, 0, 0, 0], |
|
195 | 195 | // "Pacific Standard Time (Mexico)" => array(480, 0, -60, 0, 10, 0, 5, 2, 0, 0, 0, 0, 4, 0, 1, 2, 0, 0, 0), |
196 | 196 | // "Pakistan Standard Time" => array(-300, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), |
197 | 197 | // "Paraguay Standard Time" => array(240, 0, -60, 0, 4, 6, 1, 23, 59, 59, 999, 0, 10, 6, 1, 23, 59, 59, 999), |
198 | - "Romance Standard Time" => [-60, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0], |
|
199 | - "Russian Standard Time" => [-180, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0], |
|
200 | - "SA Eastern Standard Time" => [180, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
201 | - "SA Pacific Standard Time" => [300, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
202 | - "SA Western Standard Time" => [240, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
203 | - "Samoa Standard Time" => [660, 0, -60, 0, 3, 6, 5, 23, 59, 59, 999, 0, 9, 6, 5, 23, 59, 59, 999], |
|
204 | - "SE Asia Standard Time" => [-420, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
205 | - "Singapore Standard Time" => [-480, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
206 | - "South Africa Standard Time" => [-120, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
207 | - "Sri Lanka Standard Time" => [-330, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
198 | + "Romance Standard Time" => [-60, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0], |
|
199 | + "Russian Standard Time" => [-180, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0], |
|
200 | + "SA Eastern Standard Time" => [180, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
201 | + "SA Pacific Standard Time" => [300, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
202 | + "SA Western Standard Time" => [240, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
203 | + "Samoa Standard Time" => [660, 0, -60, 0, 3, 6, 5, 23, 59, 59, 999, 0, 9, 6, 5, 23, 59, 59, 999], |
|
204 | + "SE Asia Standard Time" => [-420, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
205 | + "Singapore Standard Time" => [-480, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
206 | + "South Africa Standard Time" => [-120, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
207 | + "Sri Lanka Standard Time" => [-330, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
208 | 208 | // "Syria Standard Time" => array(-120, 0, -60, 0, 10, 4, 5, 23, 59, 59, 999, 0, 4, 4, 1, 23, 59, 59, 999), |
209 | - "Taipei Standard Time" => [-480, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
210 | - "Tasmania Standard Time" => [-600, 0, -60, 0, 4, 0, 1, 3, 0, 0, 0, 0, 10, 0, 1, 2, 0, 0, 0], |
|
211 | - "Tokyo Standard Time" => [-540, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
212 | - "Tonga Standard Time" => [-780, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
209 | + "Taipei Standard Time" => [-480, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
210 | + "Tasmania Standard Time" => [-600, 0, -60, 0, 4, 0, 1, 3, 0, 0, 0, 0, 10, 0, 1, 2, 0, 0, 0], |
|
211 | + "Tokyo Standard Time" => [-540, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
212 | + "Tonga Standard Time" => [-780, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
213 | 213 | // "Ulaanbaatar Standard Time" => array(-480, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), |
214 | - "US Eastern Standard Time" => [300, 0, -60, 0, 11, 0, 1, 2, 0, 0, 0, 0, 3, 0, 2, 2, 0, 0, 0], |
|
215 | - "US Mountain Standard Time" => [420, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
214 | + "US Eastern Standard Time" => [300, 0, -60, 0, 11, 0, 1, 2, 0, 0, 0, 0, 3, 0, 2, 2, 0, 0, 0], |
|
215 | + "US Mountain Standard Time" => [420, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
216 | 216 | // "UTC" => array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), |
217 | 217 | // "UTC+12" => array(-720, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), |
218 | 218 | // "UTC-02" => array(120, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), |
219 | 219 | // "UTC-11" => array(660, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), |
220 | - "Venezuela Standard Time" => [270, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
221 | - "Vladivostok Standard Time" => [-600, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0], |
|
222 | - "W Australia Standard Time" => [-480, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
223 | - "W Central Africa Standard Time" => [-60, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
224 | - "W Europe Standard Time" => [-60, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0], |
|
225 | - "West Asia Standard Time" => [-300, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
226 | - "West Pacific Standard Time" => [-600, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
227 | - "Yakutsk Standard Time" => [-540, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0], |
|
220 | + "Venezuela Standard Time" => [270, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
221 | + "Vladivostok Standard Time" => [-600, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0], |
|
222 | + "W Australia Standard Time" => [-480, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
223 | + "W Central Africa Standard Time" => [-60, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
224 | + "W Europe Standard Time" => [-60, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0], |
|
225 | + "West Asia Standard Time" => [-300, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
226 | + "West Pacific Standard Time" => [-600, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
227 | + "Yakutsk Standard Time" => [-540, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0], |
|
228 | 228 | ]; |
229 | 229 | |
230 | 230 | /** |
@@ -87,11 +87,9 @@ |
||
87 | 87 | public function stream_seek($offset, $whence = SEEK_SET) { |
88 | 88 | if ($whence == SEEK_CUR) { |
89 | 89 | $this->position += $offset; |
90 | - } |
|
91 | - elseif ($whence == SEEK_END) { |
|
90 | + } elseif ($whence == SEEK_END) { |
|
92 | 91 | $this->position = $this->stringlength + $offset; |
93 | - } |
|
94 | - else { |
|
92 | + } else { |
|
95 | 93 | $this->position = $offset; |
96 | 94 | } |
97 | 95 |
@@ -250,8 +250,7 @@ discard block |
||
250 | 250 | |
251 | 251 | if (!$this->nestGroups) { |
252 | 252 | $this->structure = array_merge($this->structure, $valid); |
253 | - } |
|
254 | - else { |
|
253 | + } else { |
|
255 | 254 | $this->structure[] = $valid; |
256 | 255 | } |
257 | 256 | } |
@@ -274,12 +273,10 @@ discard block |
||
274 | 273 | if ($this->_isGroup($address) && !isset($this->error)) { |
275 | 274 | $split_char = ';'; |
276 | 275 | $is_group = true; |
277 | - } |
|
278 | - elseif (!isset($this->error)) { |
|
276 | + } elseif (!isset($this->error)) { |
|
279 | 277 | $split_char = ','; |
280 | 278 | $is_group = false; |
281 | - } |
|
282 | - elseif (isset($this->error)) { |
|
279 | + } elseif (isset($this->error)) { |
|
283 | 280 | return false; |
284 | 281 | } |
285 | 282 | |
@@ -377,14 +374,12 @@ discard block |
||
377 | 374 | substr($string, -1) == '\\') { |
378 | 375 | if (isset($parts[$i + 1])) { |
379 | 376 | $string = $string . $char . $parts[$i + 1]; |
380 | - } |
|
381 | - else { |
|
377 | + } else { |
|
382 | 378 | $this->error = 'Invalid address spec. Unclosed bracket or quotes'; |
383 | 379 | |
384 | 380 | return false; |
385 | 381 | } |
386 | - } |
|
387 | - else { |
|
382 | + } else { |
|
388 | 383 | $this->index = $i; |
389 | 384 | |
390 | 385 | break; |
@@ -523,8 +518,7 @@ discard block |
||
523 | 518 | $addresses[] = $this->_splitCheck($parts, ','); |
524 | 519 | $address['address'] = trim(substr($address['address'], strlen(end($addresses) . ','))); |
525 | 520 | } |
526 | - } |
|
527 | - else { |
|
521 | + } else { |
|
528 | 522 | $addresses[] = $address['address']; |
529 | 523 | } |
530 | 524 | |
@@ -550,18 +544,15 @@ discard block |
||
550 | 544 | if ($this->nestGroups) { |
551 | 545 | if ($is_group) { |
552 | 546 | $structure->addresses = $addresses; |
553 | - } |
|
554 | - else { |
|
547 | + } else { |
|
555 | 548 | $structure = $addresses[0]; |
556 | 549 | } |
557 | 550 | |
558 | 551 | // Flat format |
559 | - } |
|
560 | - else { |
|
552 | + } else { |
|
561 | 553 | if ($is_group) { |
562 | 554 | $structure = array_merge($structure, $addresses); |
563 | - } |
|
564 | - else { |
|
555 | + } else { |
|
565 | 556 | $structure = $addresses; |
566 | 557 | } |
567 | 558 | } |
@@ -689,8 +680,7 @@ discard block |
||
689 | 680 | |
690 | 681 | // +2 is for the brackets |
691 | 682 | $_mailbox = substr($_mailbox, strpos($_mailbox, '(' . $comment) + strlen($comment) + 2); |
692 | - } |
|
693 | - else { |
|
683 | + } else { |
|
694 | 684 | break; |
695 | 685 | } |
696 | 686 | } |
@@ -719,13 +709,11 @@ discard block |
||
719 | 709 | } |
720 | 710 | |
721 | 711 | // Only got addr-spec |
722 | - } |
|
723 | - else { |
|
712 | + } else { |
|
724 | 713 | // First snip angle brackets if present. |
725 | 714 | if (substr($mailbox, 0, 1) == '<' && substr($mailbox, -1) == '>') { |
726 | 715 | $addr_spec = substr($mailbox, 1, -1); |
727 | - } |
|
728 | - else { |
|
716 | + } else { |
|
729 | 717 | $addr_spec = $mailbox; |
730 | 718 | } |
731 | 719 | |
@@ -745,8 +733,7 @@ discard block |
||
745 | 733 | $mbox->mailbox = $route_addr['local_part']; |
746 | 734 | $mbox->host = $route_addr['domain']; |
747 | 735 | $route_addr['adl'] !== '' ? $mbox->adl = $route_addr['adl'] : ''; |
748 | - } |
|
749 | - else { |
|
736 | + } else { |
|
750 | 737 | $mbox->mailbox = $addr_spec['local_part']; |
751 | 738 | $mbox->host = $addr_spec['domain']; |
752 | 739 | } |
@@ -772,8 +759,7 @@ discard block |
||
772 | 759 | if (strpos($route_addr, ':') !== false) { |
773 | 760 | $parts = explode(':', $route_addr); |
774 | 761 | $route = $this->_splitCheck($parts, ':'); |
775 | - } |
|
776 | - else { |
|
762 | + } else { |
|
777 | 763 | $route = $route_addr; |
778 | 764 | } |
779 | 765 | |
@@ -785,8 +771,7 @@ discard block |
||
785 | 771 | if (($addr_spec = $this->_validateAddrSpec($addr_spec)) === false) { |
786 | 772 | return false; |
787 | 773 | } |
788 | - } |
|
789 | - else { |
|
774 | + } else { |
|
790 | 775 | // Validate route part. |
791 | 776 | if (($route = $this->_validateRoute($route)) === false) { |
792 | 777 | return false; |
@@ -802,8 +787,7 @@ discard block |
||
802 | 787 | |
803 | 788 | if (isset($route)) { |
804 | 789 | $return['adl'] = $route; |
805 | - } |
|
806 | - else { |
|
790 | + } else { |
|
807 | 791 | $return['adl'] = ''; |
808 | 792 | } |
809 | 793 | |
@@ -876,8 +860,7 @@ discard block |
||
876 | 860 | if (!$this->_validateDliteral($arr[1])) { |
877 | 861 | return false; |
878 | 862 | } |
879 | - } |
|
880 | - else { |
|
863 | + } else { |
|
881 | 864 | if (!$this->_validateAtom($subdomain)) { |
882 | 865 | return false; |
883 | 866 | } |
@@ -918,8 +901,7 @@ discard block |
||
918 | 901 | $domain = substr($addr_spec, strlen($local_part . '@')); |
919 | 902 | |
920 | 903 | // No @ sign so assume the default domain. |
921 | - } |
|
922 | - else { |
|
904 | + } else { |
|
923 | 905 | $local_part = $addr_spec; |
924 | 906 | $domain = $this->default_domain; |
925 | 907 | } |
@@ -410,22 +410,22 @@ |
||
410 | 410 | |
411 | 411 | for (; $i < $iMax; ++$i) { |
412 | 412 | switch ($string[$i]) { |
413 | - case '\\': |
|
414 | - ++$slashes; |
|
413 | + case '\\': |
|
414 | + ++$slashes; |
|
415 | 415 | |
416 | - break; |
|
416 | + break; |
|
417 | 417 | |
418 | - case '"': |
|
419 | - if ($slashes % 2 == 0) { |
|
420 | - $in_quote = !$in_quote; |
|
421 | - } |
|
422 | - // Fall through to default action below. |
|
418 | + case '"': |
|
419 | + if ($slashes % 2 == 0) { |
|
420 | + $in_quote = !$in_quote; |
|
421 | + } |
|
422 | + // Fall through to default action below. |
|
423 | 423 | |
424 | - // no break |
|
425 | - default: |
|
426 | - $slashes = 0; |
|
424 | + // no break |
|
425 | + default: |
|
426 | + $slashes = 0; |
|
427 | 427 | |
428 | - break; |
|
428 | + break; |
|
429 | 429 | } |
430 | 430 | } |
431 | 431 |
@@ -33,8 +33,7 @@ discard block |
||
33 | 33 | if ($pos === false) { |
34 | 34 | $user = $domainuser; |
35 | 35 | $domain = ''; |
36 | - } |
|
37 | - else { |
|
36 | + } else { |
|
38 | 37 | $domain = substr($domainuser, 0, $pos); |
39 | 38 | $user = substr($domainuser, $pos + 1); |
40 | 39 | } |
@@ -105,12 +104,10 @@ discard block |
||
105 | 104 | if (strlen($names) > 0) { |
106 | 105 | $lastfirst .= ", {$names}"; |
107 | 106 | $firstlast = "{$names} {$lastname}"; |
108 | - } |
|
109 | - else { |
|
107 | + } else { |
|
110 | 108 | $firstlast = $lastname; |
111 | 109 | } |
112 | - } |
|
113 | - elseif (strlen($names) > 0) { |
|
110 | + } elseif (strlen($names) > 0) { |
|
114 | 111 | $lastfirst = $firstlast = $names; |
115 | 112 | } |
116 | 113 | |
@@ -122,8 +119,7 @@ discard block |
||
122 | 119 | case SYNC_FILEAS_COMPANYONLY: |
123 | 120 | if (strlen($company) > 0) { |
124 | 121 | $fileas = $company; |
125 | - } |
|
126 | - elseif (strlen($firstlast) > 0) { |
|
122 | + } elseif (strlen($firstlast) > 0) { |
|
127 | 123 | $fileas = $lastfirst; |
128 | 124 | } |
129 | 125 | break; |
@@ -134,8 +130,7 @@ discard block |
||
134 | 130 | if (strlen($lastfirst) > 0) { |
135 | 131 | $fileas .= "({$lastfirst})"; |
136 | 132 | } |
137 | - } |
|
138 | - elseif (strlen($lastfirst) > 0) { |
|
133 | + } elseif (strlen($lastfirst) > 0) { |
|
139 | 134 | $fileas = $lastfirst; |
140 | 135 | } |
141 | 136 | break; |
@@ -146,8 +141,7 @@ discard block |
||
146 | 141 | if (strlen($firstlast) > 0) { |
147 | 142 | $fileas .= " ({$firstlast})"; |
148 | 143 | } |
149 | - } |
|
150 | - elseif (strlen($firstlast) > 0) { |
|
144 | + } elseif (strlen($firstlast) > 0) { |
|
151 | 145 | $fileas = $firstlast; |
152 | 146 | } |
153 | 147 | break; |
@@ -158,8 +152,7 @@ discard block |
||
158 | 152 | if (strlen($company) > 0) { |
159 | 153 | $fileas .= " ({$company})"; |
160 | 154 | } |
161 | - } |
|
162 | - elseif (strlen($company) > 0) { |
|
155 | + } elseif (strlen($company) > 0) { |
|
163 | 156 | $fileas = $company; |
164 | 157 | } |
165 | 158 | break; |
@@ -170,8 +163,7 @@ discard block |
||
170 | 163 | if (strlen($company) > 0) { |
171 | 164 | $fileas .= " ({$company})"; |
172 | 165 | } |
173 | - } |
|
174 | - elseif (strlen($company) > 0) { |
|
166 | + } elseif (strlen($company) > 0) { |
|
175 | 167 | $fileas = $company; |
176 | 168 | } |
177 | 169 | break; |
@@ -409,7 +409,7 @@ discard block |
||
409 | 409 | */ |
410 | 410 | public static function Utf8_truncate($string, $length, $htmlsafe = false) { |
411 | 411 | // make sure length is always an integer |
412 | - $length = (int) $length; |
|
412 | + $length = (int)$length; |
|
413 | 413 | |
414 | 414 | // if the input string is shorter then the trunction, make sure it's valid UTF-8! |
415 | 415 | if (strlen($string) <= $length) { |
@@ -479,7 +479,7 @@ discard block |
||
479 | 479 | * @return bool |
480 | 480 | */ |
481 | 481 | public static function IsBase64String($string) { |
482 | - return (bool) preg_match("#^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+\\/]{3}=|[A-Za-z0-9+/]{4})?$#", $string); |
|
482 | + return (bool)preg_match("#^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+\\/]{3}=|[A-Za-z0-9+/]{4})?$#", $string); |
|
483 | 483 | } |
484 | 484 | |
485 | 485 | /** |
@@ -15,6 +15,6 @@ |
||
15 | 15 | if ($code) { |
16 | 16 | $this->httpReturnCode = $code; |
17 | 17 | } |
18 | - parent::__construct($message, (int) $code, $previous, $logLevel); |
|
18 | + parent::__construct($message, (int)$code, $previous, $logLevel); |
|
19 | 19 | } |
20 | 20 | } |
@@ -150,15 +150,13 @@ discard block |
||
150 | 150 | |
151 | 151 | // destruct backend after all data is on the stream |
152 | 152 | $backend->Logoff(); |
153 | - } |
|
154 | - catch (NoPostRequestException $nopostex) { |
|
153 | + } catch (NoPostRequestException $nopostex) { |
|
155 | 154 | if ($nopostex->getCode() == NoPostRequestException::OPTIONS_REQUEST) { |
156 | 155 | header(GSync::GetServerHeader()); |
157 | 156 | header(GSync::GetSupportedProtocolVersions()); |
158 | 157 | header(GSync::GetSupportedCommands()); |
159 | 158 | SLog::Write(LOGLEVEL_INFO, $nopostex->getMessage()); |
160 | - } |
|
161 | - elseif ($nopostex->getCode() == NoPostRequestException::GET_REQUEST) { |
|
159 | + } elseif ($nopostex->getCode() == NoPostRequestException::GET_REQUEST) { |
|
162 | 160 | if (Request::GetUserAgent()) { |
163 | 161 | SLog::Write(LOGLEVEL_INFO, sprintf("User-agent: '%s'", Request::GetUserAgent())); |
164 | 162 | } |
@@ -166,8 +164,7 @@ discard block |
||
166 | 164 | GSync::PrintGrommunioSyncLegal('GET not supported', $nopostex->getMessage()); |
167 | 165 | } |
168 | 166 | } |
169 | - } |
|
170 | - catch (Exception $ex) { |
|
167 | + } catch (Exception $ex) { |
|
171 | 168 | // Extract any previous exception message for logging purpose. |
172 | 169 | $exclass = get_class($ex); |
173 | 170 | $exception_message = $ex->getMessage(); |
@@ -23,7 +23,7 @@ |
||
23 | 23 | $logLevel = $this->defaultLogLevel; |
24 | 24 | } |
25 | 25 | |
26 | - parent::__construct($message, (int) $code); |
|
26 | + parent::__construct($message, (int)$code); |
|
27 | 27 | SLog::Write($logLevel, get_class($this) . ': ' . $message . ' - code: ' . $code . ' - file: ' . $this->getFile() . ':' . $this->getLine(), false); |
28 | 28 | } |
29 | 29 |