projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cd9361
)
TimeZone.php
author
leon
<leon@roojs.com>
Fri, 27 Oct 2023 05:20:06 +0000
(13:20 +0800)
committer
leon
<leon@roojs.com>
Fri, 27 Oct 2023 05:20:06 +0000
(13:20 +0800)
TimeZone.php
patch
|
blob
|
history
diff --git
a/TimeZone.php
b/TimeZone.php
index
bf49608
..
6bb9089
100644
(file)
--- a/
TimeZone.php
+++ b/
TimeZone.php
@@
-121,5
+121,10
@@
class Pman_Core_TimeZone extends Pman
return $ar[0] . '/' . str_replace('_', ' ', $ar[1]) . ' (GMT ' . self::toTimeOffset($dt,$tz) . ')';
}
-
+ static function toDisplayArea($tz)
+ {
+ $ar = explode('/', $tz);
+ return str_replace('_', ' ', $ar[1]);
+
+ }
}
\ No newline at end of file