projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15900c6
)
TimeZone.php
author
leon
<leon@roojs.com>
Fri, 27 Oct 2023 05:25:28 +0000
(13:25 +0800)
committer
leon
<leon@roojs.com>
Fri, 27 Oct 2023 05:25:28 +0000
(13:25 +0800)
TimeZone.php
patch
|
blob
|
history
diff --git
a/TimeZone.php
b/TimeZone.php
index
9db0d0c
..
d3c56d1
100644
(file)
--- a/
TimeZone.php
+++ b/
TimeZone.php
@@
-127,4
+127,14
@@
class Pman_Core_TimeZone extends Pman
$ar = explode('/', $tz);
return $ar[0] . '/' . self::toDisplayArea($dt, $tz);
}
+
+ static function toRegion($tz)
+ {
+ return explode('/', $tz)[0];
+ }
+
+ static function toArea($tz)
+ {
+ return explode('/', $tz)[1];
+ }
}
\ No newline at end of file