projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c97995
)
TimeZone.php
author
leon
<leon@roojs.com>
Thu, 28 Sep 2023 04:03:42 +0000
(12:03 +0800)
committer
leon
<leon@roojs.com>
Thu, 28 Sep 2023 04:03:42 +0000
(12:03 +0800)
TimeZone.php
patch
|
blob
|
history
diff --git
a/TimeZone.php
b/TimeZone.php
index
d688bac
..
2c42e45
100644
(file)
--- a/
TimeZone.php
+++ b/
TimeZone.php
@@
-26,8
+26,13
@@
class Pman_Core_TimeZone extends Pman
$data = array();
while($ce->fetch()) {
+ if(strpos($ce->Name, '/') === false) {
+ continue;
+ }
+ $ar = explode('/', $ce->Name);
$data[] = array(
- 'name' => $ce->Name
+ 'region' => $ar[0],
+ 'area' => $ar[1]
);
}