@@ -419,7 +419,7 @@ discard block |
||
419 | 419 | throw new StateInvalidException(sprintf("SyncKey '%s' is invalid", $synckey)); |
420 | 420 | } |
421 | 421 | |
422 | - return [$matches[1], (int) $matches[2]]; |
|
422 | + return [$matches[1], (int)$matches[2]]; |
|
423 | 423 | } |
424 | 424 | |
425 | 425 | /** |
@@ -437,7 +437,7 @@ discard block |
||
437 | 437 | throw new StateInvalidException(sprintf("UUID '%s' is invalid", $uuid)); |
438 | 438 | } |
439 | 439 | |
440 | - return "{" . $uuid . "}" . $counter; |
|
440 | + return "{".$uuid."}".$counter; |
|
441 | 441 | } |
442 | 442 | |
443 | 443 | /*---------------------------------------------------------------------------------------------------------- |
@@ -520,8 +520,8 @@ discard block |
||
520 | 520 | mt_rand(0, 0xFFFF), |
521 | 521 | mt_rand(0, 0xFFFF), |
522 | 522 | mt_rand(0, 0xFFFF), |
523 | - mt_rand(0, 0x0FFF) | 0x4000, |
|
524 | - mt_rand(0, 0x3FFF) | 0x8000, |
|
523 | + mt_rand(0, 0x0FFF)|0x4000, |
|
524 | + mt_rand(0, 0x3FFF)|0x8000, |
|
525 | 525 | mt_rand(0, 0xFFFF), |
526 | 526 | mt_rand(0, 0xFFFF), |
527 | 527 | mt_rand(0, 0xFFFF) |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * Used to remove the current ping data from shared memory. |
24 | 24 | */ |
25 | 25 | public function __destruct() { |
26 | - return $this->setDeviceUserData($this->type, ["pid:" . self::$pid], self::$devid, self::$user, $subkey = -1, $doCas = "deletekeys"); |
|
26 | + return $this->setDeviceUserData($this->type, ["pid:".self::$pid], self::$devid, self::$user, $subkey = -1, $doCas = "deletekeys"); |
|
27 | 27 | } |
28 | 28 | |
29 | 29 | /** |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | $this->initializeParams(); |
37 | 37 | // need microtime as connections sometimes start at the same second |
38 | 38 | self::$start = microtime(true); |
39 | - $pingtracking = ["pid:" . self::$pid => self::$start]; |
|
39 | + $pingtracking = ["pid:".self::$pid => self::$start]; |
|
40 | 40 | |
41 | 41 | return $this->setDeviceUserData($this->type, $pingtracking, self::$devid, self::$user, $subkey = -1, $doCas = "merge"); |
42 | 42 | } |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | // no policies cached in redis, get policies from admin API |
46 | 46 | else { |
47 | 47 | $policies = false; |
48 | - $api_response = file_get_contents(ADMIN_API_POLICY_ENDPOINT . self::$user); |
|
48 | + $api_response = file_get_contents(ADMIN_API_POLICY_ENDPOINT.self::$user); |
|
49 | 49 | if ($api_response) { |
50 | 50 | $data = json_decode($api_response); |
51 | 51 | if (isset($data->data)) { |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | $status = SYNC_PROVISION_RWSTATUS_NA; |
177 | 177 | |
178 | 178 | // retrieve the WIPE STATUS from the Admin API |
179 | - $api_response = file_get_contents(ADMIN_API_WIPE_ENDPOINT . self::$user . "?devices=" . self::$devid); |
|
179 | + $api_response = file_get_contents(ADMIN_API_WIPE_ENDPOINT.self::$user."?devices=".self::$devid); |
|
180 | 180 | if ($api_response) { |
181 | 181 | $data = json_decode($api_response, true); |
182 | 182 | if (isset($data['data'][self::$devid]["status"])) { |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | ), |
218 | 218 | ], |
219 | 219 | ]; |
220 | - $ret = file_get_contents(ADMIN_API_WIPE_ENDPOINT . self::$user . "?devices=" . self::$devid, false, stream_context_create($opts)); |
|
220 | + $ret = file_get_contents(ADMIN_API_WIPE_ENDPOINT.self::$user."?devices=".self::$devid, false, stream_context_create($opts)); |
|
221 | 221 | SLog::Write(LOGLEVEL_DEBUG, sprintf("ProvisioningManager->SetProvisioningWipeStatus() admin API response: %s", trim(Utils::PrintAsString($ret)))); |
222 | 222 | |
223 | 223 | return strpos($http_response_header[0], "201") !== false; |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | // truncate messages longer than 10 KB |
57 | 57 | $messagesize = strlen($message); |
58 | 58 | if ($truncate && $messagesize > 10240) { |
59 | - $message = substr($message, 0, 10240) . sprintf(" <log message with %d bytes truncated>", $messagesize); |
|
59 | + $message = substr($message, 0, 10240).sprintf(" <log message with %d bytes truncated>", $messagesize); |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | self::$lastLogs[$loglevel] = $message; |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | } |
71 | 71 | |
72 | 72 | if ($loglevel & LOGLEVEL_WBXMLSTACK) { |
73 | - self::$wbxmlDebug .= $message . PHP_EOL; |
|
73 | + self::$wbxmlDebug .= $message.PHP_EOL; |
|
74 | 74 | } |
75 | 75 | } |
76 | 76 | |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | |
118 | 118 | $logger = LOGBACKEND_CLASS; |
119 | 119 | if (!class_exists($logger)) { |
120 | - $errmsg = 'The configured logging class `' . $logger . '` does not exist. Check your configuration.'; |
|
120 | + $errmsg = 'The configured logging class `'.$logger.'` does not exist. Check your configuration.'; |
|
121 | 121 | error_log($errmsg); |
122 | 122 | |
123 | 123 | throw new \Exception($errmsg); |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | |
179 | 179 | default: |
180 | 180 | $bt = debug_backtrace(); |
181 | - SLog::Write(LOGLEVEL_ERROR, "trace error: {$errfile}:{$errline} {$errstr} ({$errno}) - backtrace: " . (count($bt) - 1) . " steps"); |
|
181 | + SLog::Write(LOGLEVEL_ERROR, "trace error: {$errfile}:{$errline} {$errstr} ({$errno}) - backtrace: ".(count($bt) - 1)." steps"); |
|
182 | 182 | for ($i = 1, $bt_length = count($bt); $i < $bt_length; ++$i) { |
183 | 183 | $file = $line = "unknown"; |
184 | 184 | if (isset($bt[$i]['file'])) { |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | if (isset($bt[$i]['line'])) { |
188 | 188 | $line = $bt[$i]['line']; |
189 | 189 | } |
190 | - SLog::Write(LOGLEVEL_ERROR, "trace: {$i}:" . $file . ":" . $line . " - " . ((isset($bt[$i]['class'])) ? $bt[$i]['class'] . $bt[$i]['type'] : "") . $bt[$i]['function'] . "()"); |
|
190 | + SLog::Write(LOGLEVEL_ERROR, "trace: {$i}:".$file.":".$line." - ".((isset($bt[$i]['class'])) ? $bt[$i]['class'].$bt[$i]['type'] : "").$bt[$i]['function']."()"); |
|
191 | 191 | } |
192 | 192 | // throw new Exception("An error occurred."); |
193 | 193 | break; |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | $errstr = $error["message"]; |
213 | 213 | |
214 | 214 | // do NOT log PHP Notice, Warning, Deprecated or Strict as FATAL |
215 | - if ($errno & ~(E_NOTICE | E_WARNING | E_DEPRECATED | E_STRICT)) { |
|
215 | + if ($errno & ~(E_NOTICE|E_WARNING|E_DEPRECATED|E_STRICT)) { |
|
216 | 216 | SLog::Write(LOGLEVEL_FATAL, sprintf("Fatal error: %s:%d - %s (%s)", $errfile, $errline, $errstr, $errno)); |
217 | 217 | } |
218 | 218 | } |
@@ -34,8 +34,7 @@ discard block |
||
34 | 34 | if (!isset(self::$loopCounter[$name])) { |
35 | 35 | self::$loopCounter[$name] = 0; |
36 | 36 | } |
37 | - else { |
|
38 | - ++self::$loopCounter[$name]; |
|
37 | + else {++self::$loopCounter[$name]; |
|
39 | 38 | } |
40 | 39 | |
41 | 40 | if (self::$loopCounter[$name] > self::MAXLOOP) { |
@@ -81,17 +80,17 @@ discard block |
||
81 | 80 | |
82 | 81 | $publicid = $this->getMBUInt(); |
83 | 82 | if ($publicid !== 1) { |
84 | - throw new WBXMLException("Wrong publicid : " . $publicid); |
|
83 | + throw new WBXMLException("Wrong publicid : ".$publicid); |
|
85 | 84 | } |
86 | 85 | |
87 | 86 | $charsetid = $this->getMBUInt(); |
88 | 87 | if ($charsetid !== 106) { |
89 | - throw new WBXMLException("Wrong charset : " . $charsetid); |
|
88 | + throw new WBXMLException("Wrong charset : ".$charsetid); |
|
90 | 89 | } |
91 | 90 | |
92 | 91 | $stringtablesize = $this->getMBUInt(); |
93 | 92 | if ($stringtablesize !== 0) { |
94 | - throw new WBXMLException("Wrong string table size : " . $stringtablesize); |
|
93 | + throw new WBXMLException("Wrong string table size : ".$stringtablesize); |
|
95 | 94 | } |
96 | 95 | } |
97 | 96 | |
@@ -184,7 +183,7 @@ discard block |
||
184 | 183 | SLog::Write(LOGLEVEL_WBXMLSTACK, sprintf("WBXMLDecoder->getElementEndTag(): unmatched WBXML tag: '%s' type '%s' flags '%s'", ((isset($element[EN_TAG])) ? $element[EN_TAG] : ""), ((isset($element[EN_TYPE])) ? $element[EN_TYPE] : ""), ((isset($element[EN_FLAGS])) ? $element[EN_FLAGS] : ""))); |
185 | 184 | |
186 | 185 | $bt = debug_backtrace(); |
187 | - SLog::Write(LOGLEVEL_ERROR, sprintf("WBXMLDecoder->getElementEndTag(): could not read end tag in '%s'. Please enable the LOGLEVEL_WBXML and send the log to the grommunio-sync dev team.", $bt[0]["file"] . ":" . $bt[0]["line"])); |
|
186 | + SLog::Write(LOGLEVEL_ERROR, sprintf("WBXMLDecoder->getElementEndTag(): could not read end tag in '%s'. Please enable the LOGLEVEL_WBXML and send the log to the grommunio-sync dev team.", $bt[0]["file"].":".$bt[0]["line"])); |
|
188 | 187 | |
189 | 188 | // log the remaining wbxml content |
190 | 189 | $this->ungetElement($element); |
@@ -232,7 +231,7 @@ discard block |
||
232 | 231 | * @return string |
233 | 232 | */ |
234 | 233 | public function GetPlainInputStream() { |
235 | - return $this->inputBuffer . stream_get_contents($this->in); |
|
234 | + return $this->inputBuffer.stream_get_contents($this->in); |
|
236 | 235 | } |
237 | 236 | |
238 | 237 | /** |
@@ -291,17 +290,17 @@ discard block |
||
291 | 290 | switch ($el[EN_TYPE]) { |
292 | 291 | case EN_TYPE_STARTTAG: |
293 | 292 | if ($el[EN_FLAGS] & EN_FLAGS_CONTENT) { |
294 | - SLog::Write(LOGLEVEL_WBXML, "I " . $spaces . " <" . $el[EN_TAG] . ">"); |
|
293 | + SLog::Write(LOGLEVEL_WBXML, "I ".$spaces." <".$el[EN_TAG].">"); |
|
295 | 294 | array_push($this->logStack, $el[EN_TAG]); |
296 | 295 | } |
297 | 296 | else { |
298 | - SLog::Write(LOGLEVEL_WBXML, "I " . $spaces . " <" . $el[EN_TAG] . "/>"); |
|
297 | + SLog::Write(LOGLEVEL_WBXML, "I ".$spaces." <".$el[EN_TAG]."/>"); |
|
299 | 298 | } |
300 | 299 | break; |
301 | 300 | |
302 | 301 | case EN_TYPE_ENDTAG: |
303 | 302 | $tag = array_pop($this->logStack); |
304 | - SLog::Write(LOGLEVEL_WBXML, "I " . $spaces . "</" . $tag . ">"); |
|
303 | + SLog::Write(LOGLEVEL_WBXML, "I ".$spaces."</".$tag.">"); |
|
305 | 304 | break; |
306 | 305 | |
307 | 306 | case EN_TYPE_CONTENT: |
@@ -310,13 +309,13 @@ discard block |
||
310 | 309 | // requires easily additional 20 MB of RAM. See https://jira.z-hub.io/browse/ZP-1159 |
311 | 310 | $messagesize = strlen($el[EN_CONTENT]); |
312 | 311 | if ($messagesize > 10240 && !defined('WBXML_DEBUGGING')) { |
313 | - $content = substr($el[EN_CONTENT], 0, 10240) . sprintf(" <log message with %d bytes truncated>", $messagesize); |
|
312 | + $content = substr($el[EN_CONTENT], 0, 10240).sprintf(" <log message with %d bytes truncated>", $messagesize); |
|
314 | 313 | } |
315 | 314 | else { |
316 | 315 | $content = $el[EN_CONTENT]; |
317 | 316 | } |
318 | 317 | // Log but make sure it's not truncated again (will be slightly bigger than 10KB) |
319 | - SLog::Write(LOGLEVEL_WBXML, "I " . $spaces . " " . $content, false); |
|
318 | + SLog::Write(LOGLEVEL_WBXML, "I ".$spaces." ".$content, false); |
|
320 | 319 | break; |
321 | 320 | } |
322 | 321 | } |
@@ -377,11 +376,11 @@ discard block |
||
377 | 376 | case self::WBXML_EXT_1: |
378 | 377 | case self::WBXML_EXT_2: |
379 | 378 | case self::WBXML_LITERAL_AC: |
380 | - throw new WBXMLException("Invalid token :" . $byte); |
|
379 | + throw new WBXMLException("Invalid token :".$byte); |
|
381 | 380 | |
382 | 381 | default: |
383 | 382 | if ($byte & self::WBXML_WITH_ATTRIBUTES) { |
384 | - throw new WBXMLException("Attributes are not allowed :" . $byte); |
|
383 | + throw new WBXMLException("Attributes are not allowed :".$byte); |
|
385 | 384 | } |
386 | 385 | $element[EN_TYPE] = EN_TYPE_STARTTAG; |
387 | 386 | $element[EN_TAG] = $this->getMapping($this->tagcp, $byte & 0x3F); |
@@ -490,7 +489,7 @@ discard block |
||
490 | 489 | } |
491 | 490 | |
492 | 491 | if (isset($this->dtd["namespaces"][$cp])) { |
493 | - return $this->dtd["namespaces"][$cp] . ":" . $this->dtd["codes"][$cp][$id]; |
|
492 | + return $this->dtd["namespaces"][$cp].":".$this->dtd["codes"][$cp][$id]; |
|
494 | 493 | } |
495 | 494 | |
496 | 495 | return $this->dtd["codes"][$cp][$id]; |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | 0x3E => "CompleteTime", // Since 12.0 |
210 | 210 | 0x3F => "DisallowNewTimeProposal", // Since 14.0 |
211 | 211 | ], |
212 | - 3 => [ // Code page 3 is no longer in use, however, tokens 05 through 17 have been defined. 20100501 |
|
212 | + 3 => [// Code page 3 is no longer in use, however, tokens 05 through 17 have been defined. 20100501 |
|
213 | 213 | 0x05 => "Notify", |
214 | 214 | 0x06 => "Notification", |
215 | 215 | 0x07 => "Version", |
@@ -542,7 +542,7 @@ discard block |
||
542 | 542 | 0x11 => "Status", // Since 14.1 |
543 | 543 | 0x12 => "Data", // Since 14.1 |
544 | 544 | ], |
545 | - 0x11 => [ // Since 12.0 |
|
545 | + 0x11 => [// Since 12.0 |
|
546 | 546 | 0x05 => "BodyPreference", |
547 | 547 | 0x06 => "Type", |
548 | 548 | 0x07 => "TruncationSize", |
@@ -566,7 +566,7 @@ discard block |
||
566 | 566 | 0x1A => "BodyPart", // Since 14.1 |
567 | 567 | 0x1B => "Status", // Since 14.1 |
568 | 568 | ], |
569 | - 0x12 => [ // Since 12.0 |
|
569 | + 0x12 => [// Since 12.0 |
|
570 | 570 | 0x05 => "Settings", |
571 | 571 | 0x06 => "Status", |
572 | 572 | 0x07 => "Get", |
@@ -606,7 +606,7 @@ discard block |
||
606 | 606 | 0x29 => "SendDisabled", // Since 14.1 |
607 | 607 | 0x2B => "RightsManagementInformation", // Since 14.1 |
608 | 608 | ], |
609 | - 0x13 => [ // Since 12.0 |
|
609 | + 0x13 => [// Since 12.0 |
|
610 | 610 | 0x05 => "LinkId", |
611 | 611 | 0x06 => "DisplayName", |
612 | 612 | 0x07 => "IsFolder", |
@@ -616,7 +616,7 @@ discard block |
||
616 | 616 | 0x0B => "ContentLength", |
617 | 617 | 0x0C => "ContentType", |
618 | 618 | ], |
619 | - 0x14 => [ // Since 12.0 |
|
619 | + 0x14 => [// Since 12.0 |
|
620 | 620 | 0x05 => "ItemOperations", |
621 | 621 | 0x06 => "Fetch", |
622 | 622 | 0x07 => "Store", |
@@ -639,7 +639,7 @@ discard block |
||
639 | 639 | 0x18 => "ConversationId", // Since 14.0 |
640 | 640 | 0x19 => "MoveAlways", // Since 14.0 |
641 | 641 | ], |
642 | - 0x15 => [ // Since 14.0 |
|
642 | + 0x15 => [// Since 14.0 |
|
643 | 643 | 0x05 => "SendMail", |
644 | 644 | 0x06 => "SmartForward", |
645 | 645 | 0x07 => "SmartReply", |
@@ -656,7 +656,7 @@ discard block |
||
656 | 656 | 0x12 => "Status", |
657 | 657 | 0x13 => "AccountId", // Since 14.1 |
658 | 658 | ], |
659 | - 0x16 => [ // Since 14.0 |
|
659 | + 0x16 => [// Since 14.0 |
|
660 | 660 | 0x05 => "UmCallerId", |
661 | 661 | 0x06 => "UmUserNotes", |
662 | 662 | 0x07 => "UmAttDuration", |
@@ -673,14 +673,14 @@ discard block |
||
673 | 673 | 0x12 => "FirstDayOfWeek", // Since 14.1 |
674 | 674 | 0x13 => "MeetingMessageType", // Since 14.1 |
675 | 675 | ], |
676 | - 0x17 => [ // Since 14.0 |
|
676 | + 0x17 => [// Since 14.0 |
|
677 | 677 | 0x05 => "Subject", |
678 | 678 | 0x06 => "MessageClass", |
679 | 679 | 0x07 => "LastModifiedDate", |
680 | 680 | 0x08 => "Categories", |
681 | 681 | 0x09 => "Category", |
682 | 682 | ], |
683 | - 0x18 => [ // Since 14.1 |
|
683 | + 0x18 => [// Since 14.1 |
|
684 | 684 | 0x05 => "RightsManagementSupport", |
685 | 685 | 0x06 => "RightsManagementTemplates", |
686 | 686 | 0x07 => "RightsManagementTemplate", |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | // We need to filter out any \0 chars because it's the string terminator in WBXML. We currently |
129 | 129 | // cannot send \0 characters within the XML content anywhere. |
130 | 130 | $content = str_replace("\0", "", $content); |
131 | - if ("x" . $content == "x") { |
|
131 | + if ("x".$content == "x") { |
|
132 | 132 | return; |
133 | 133 | } |
134 | 134 | $this->_outputStack(); |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | */ |
178 | 178 | public function addBodypartStream($bp) { |
179 | 179 | if (!is_resource($bp)) { |
180 | - throw new WBXMLException("WBXMLEncoder->addBodypartStream(): trying to add a " . gettype($bp) . " instead of a stream"); |
|
180 | + throw new WBXMLException("WBXMLEncoder->addBodypartStream(): trying to add a ".gettype($bp)." instead of a stream"); |
|
181 | 181 | } |
182 | 182 | if ($this->multipart) { |
183 | 183 | $this->bodyparts[] = $bp; |
@@ -343,10 +343,10 @@ discard block |
||
343 | 343 | $byte = $uint & 0x7F; |
344 | 344 | $uint = $uint >> 7; |
345 | 345 | if ($i == 0) { |
346 | - $out = chr($byte) . $out; |
|
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); |
@@ -442,11 +442,11 @@ discard block |
||
442 | 442 | private function logStartTag($tag, $nocontent) { |
443 | 443 | $spaces = str_repeat(" ", count($this->logStack)); |
444 | 444 | if ($nocontent) { |
445 | - SLog::Write(LOGLEVEL_WBXML, "O " . $spaces . " <{$tag}/>"); |
|
445 | + SLog::Write(LOGLEVEL_WBXML, "O ".$spaces." <{$tag}/>"); |
|
446 | 446 | } |
447 | 447 | else { |
448 | 448 | array_push($this->logStack, $tag); |
449 | - SLog::Write(LOGLEVEL_WBXML, "O " . $spaces . " <{$tag}>"); |
|
449 | + SLog::Write(LOGLEVEL_WBXML, "O ".$spaces." <{$tag}>"); |
|
450 | 450 | } |
451 | 451 | } |
452 | 452 | |
@@ -458,7 +458,7 @@ discard block |
||
458 | 458 | private function logEndTag() { |
459 | 459 | $spaces = str_repeat(" ", count($this->logStack)); |
460 | 460 | $tag = array_pop($this->logStack); |
461 | - SLog::Write(LOGLEVEL_WBXML, "O " . $spaces . "</{$tag}>"); |
|
461 | + SLog::Write(LOGLEVEL_WBXML, "O ".$spaces."</{$tag}>"); |
|
462 | 462 | } |
463 | 463 | |
464 | 464 | /** |
@@ -470,7 +470,7 @@ discard block |
||
470 | 470 | */ |
471 | 471 | private function logContent($content) { |
472 | 472 | $spaces = str_repeat(" ", count($this->logStack)); |
473 | - SLog::Write(LOGLEVEL_WBXML, "O " . $spaces . $content); |
|
473 | + SLog::Write(LOGLEVEL_WBXML, "O ".$spaces.$content); |
|
474 | 474 | } |
475 | 475 | |
476 | 476 | /** |
@@ -516,6 +516,6 @@ discard block |
||
516 | 516 | else { |
517 | 517 | $data = "more than 512K of data"; |
518 | 518 | } |
519 | - SLog::Write(LOGLEVEL_WBXML, "WBXML-OUT: " . $data, false); |
|
519 | + SLog::Write(LOGLEVEL_WBXML, "WBXML-OUT: ".$data, false); |
|
520 | 520 | } |
521 | 521 | } |
@@ -199,12 +199,12 @@ |
||
199 | 199 | break; |
200 | 200 | |
201 | 201 | default: |
202 | - exit('Unknown http status code "' . htmlentities($code) . '"'); |
|
202 | + exit('Unknown http status code "'.htmlentities($code).'"'); |
|
203 | 203 | break; |
204 | 204 | } |
205 | 205 | |
206 | 206 | $protocol = (isset($_SERVER['SERVER_PROTOCOL']) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0'); |
207 | - header($protocol . ' ' . $code . ' ' . $text); |
|
207 | + header($protocol.' '.$code.' '.$text); |
|
208 | 208 | |
209 | 209 | $GLOBALS['http_response_code'] = $code; |
210 | 210 | } |
@@ -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 | /** |
@@ -1061,7 +1061,7 @@ discard block |
||
1061 | 1061 | $phptimezone = date_default_timezone_get(); |
1062 | 1062 | } |
1063 | 1063 | |
1064 | - SLog::Write(LOGLEVEL_DEBUG, "TimezoneUtil::GetFullTZ() for " . $phptimezone); |
|
1064 | + SLog::Write(LOGLEVEL_DEBUG, "TimezoneUtil::GetFullTZ() for ".$phptimezone); |
|
1065 | 1065 | |
1066 | 1066 | $servertzname = self::guessTZNameFromPHPName($phptimezone); |
1067 | 1067 | |
@@ -1117,7 +1117,7 @@ discard block |
||
1117 | 1117 | * @return array |
1118 | 1118 | */ |
1119 | 1119 | public static function FillTZNames($tz) { |
1120 | - SLog::Write(LOGLEVEL_DEBUG, "TimezoneUtil::FillTZNames() filling up bias " . $tz["bias"]); |
|
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 | 1123 | } |
@@ -1250,7 +1250,7 @@ discard block |
||
1250 | 1250 | public static function TZtest() { |
1251 | 1251 | foreach (self::$mstzones as $mskey => $msdefs) { |
1252 | 1252 | if (!array_key_exists($msdefs[0], self::$tzonesoffsets)) { |
1253 | - echo "key '" . $msdefs[0] . "' not found in tzonesoffsets\n"; |
|
1253 | + echo "key '".$msdefs[0]."' not found in tzonesoffsets\n"; |
|
1254 | 1254 | } |
1255 | 1255 | } |
1256 | 1256 | |
@@ -1283,7 +1283,7 @@ discard block |
||
1283 | 1283 | } |
1284 | 1284 | |
1285 | 1285 | return pack( |
1286 | - "la64vvvvvvvv" . "la64vvvvvvvv" . "l", |
|
1286 | + "la64vvvvvvvv"."la64vvvvvvvv"."l", |
|
1287 | 1287 | $tz["bias"], |
1288 | 1288 | $tz["tzname"], |
1289 | 1289 | 0, |
@@ -1333,7 +1333,7 @@ discard block |
||
1333 | 1333 | } |
1334 | 1334 | if (!$date) { |
1335 | 1335 | // 20110930 (Append T000000Z to the date, so it starts at midnight) |
1336 | - $date = date_create_from_format('Ymd\THis\Z', $value . "T000000Z", $tz); |
|
1336 | + $date = date_create_from_format('Ymd\THis\Z', $value."T000000Z", $tz); |
|
1337 | 1337 | } |
1338 | 1338 | |
1339 | 1339 | return date_timestamp_get($date); |
@@ -1349,15 +1349,15 @@ discard block |
||
1349 | 1349 | public static function ParseTimezone($timezone) { |
1350 | 1350 | // (GMT+01.00) Amsterdam / Berlin / Bern / Rome / Stockholm / Vienna |
1351 | 1351 | if (preg_match('/GMT(\\+|\\-)0(\d)/', $timezone, $matches)) { |
1352 | - return "Etc/GMT" . $matches[1] . $matches[2]; |
|
1352 | + return "Etc/GMT".$matches[1].$matches[2]; |
|
1353 | 1353 | } |
1354 | 1354 | // (GMT+10.00) XXX / XXX / XXX / XXX |
1355 | 1355 | if (preg_match('/GMT(\\+|\\-)1(\d)/', $timezone, $matches)) { |
1356 | - return "Etc/GMT" . $matches[1] . "1" . $matches[2]; |
|
1356 | + return "Etc/GMT".$matches[1]."1".$matches[2]; |
|
1357 | 1357 | } |
1358 | 1358 | // /inverse.ca/20101018_1/Europe/Amsterdam or /inverse.ca/20101018_1/America/Argentina/Buenos_Aires |
1359 | 1359 | if (preg_match('/\/[.[:word:]]+\/\w+\/(\w+)\/([\w\/]+)/', $timezone, $matches)) { |
1360 | - return $matches[1] . "/" . $matches[2]; |
|
1360 | + return $matches[1]."/".$matches[2]; |
|
1361 | 1361 | } |
1362 | 1362 | |
1363 | 1363 | return self::getMSTZnameFromTZName(trim($timezone, '"')); |