svn: /phpdoc/doc-base/trunk/scripts/ gen-phpdoc-tz-list.php

From: Date: Tue, 19 Apr 2016 09:11:24 +0000
Subject: svn: /phpdoc/doc-base/trunk/scripts/ gen-phpdoc-tz-list.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-14109@lists.php.net to get a copy of this message
derick Tue, 19 Apr 2016 09:11:24 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=339034 Log: Make sure to put all deprecated zones in the "Others" list to denote their deprecation. Changed paths: U phpdoc/doc-base/trunk/scripts/gen-phpdoc-tz-list.php Modified: phpdoc/doc-base/trunk/scripts/gen-phpdoc-tz-list.php =================================================================== --- phpdoc/doc-base/trunk/scripts/gen-phpdoc-tz-list.php 2016-04-19 09:09:10 UTC (rev 339033) +++ phpdoc/doc-base/trunk/scripts/gen-phpdoc-tz-list.php 2016-04-19 09:11:24 UTC (rev 339034) @@ -9,6 +9,7 @@ 'Mexico' => 'Others', 'US' => 'Others', ); + $nonBcList = timezone_identifiers_list(); $list = timezone_identifiers_list(DateTimeZone::ALL_WITH_BC); foreach ($list as $element) { @@ -20,12 +21,15 @@ if (isset($aliasList[$group])) { $group = $aliasList[$group]; } + if ( !in_array($element, $nonBcList)) { + $group = 'Others'; + } $groupedList[$group][] = $element; } - ksort($groupedList); - $others = $groupedList['Others']; - unset($groupedList['Others']); - $groupedList['Others'] = $others; + ksort($groupedList); + $others = $groupedList['Others']; + unset($groupedList['Others']); + $groupedList['Others'] = $others; ?> <?php echo '<?'; ?>xml version="1.0" encoding="UTF-8"?> <!-- $Revision$ -->

« previous php.doc.cvs (#14109) next »