projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
30625d2
)
I18n.php
author
Alan Knowles
<alan@akbkhome.com>
Wed, 16 May 2012 09:06:33 +0000
(17:06 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 16 May 2012 09:06:33 +0000
(17:06 +0800)
I18n.php
patch
|
blob
|
history
diff --git
a/I18n.php
b/I18n.php
index
311ba97
..
7406de8
100644
(file)
--- a/
I18n.php
+++ b/
I18n.php
@@
-137,11
+137,18
@@
class Pman_Core_I18n extends Pman
case 'Timezone':
$ar = DateTimeZone::listAbbreviations();
$ret = array();
+ $tza = array();
foreach($ar as $tl => $sar) {
foreach($sar as $tz) {
- $ret[] = array('tz' => $tz['timezone_id']);
+ $tza[] = $tz['timezone_id'];
+
}
}
+ $tza= array_unique($tza);
+ sort($tza);
+ foreach($tza as $tz) {
+ $ret[] = array('tz' => $tz);
+ }
$this->jdata($ret);