projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f14924c
)
TimeZone.php
author
leon
<leon@roojs.com>
Fri, 27 Oct 2023 05:09:38 +0000
(13:09 +0800)
committer
leon
<leon@roojs.com>
Fri, 27 Oct 2023 05:09:38 +0000
(13:09 +0800)
TimeZone.php
patch
|
blob
|
history
diff --git
a/TimeZone.php
b/TimeZone.php
index
4fbac3a
..
2e02df9
100644
(file)
--- a/
TimeZone.php
+++ b/
TimeZone.php
@@
-115,9
+115,10
@@
class Pman_Core_TimeZone extends Pman
return $date->format('P');
}
- static function toDisplayName($tz)
+ static function toDisplayName($
dt, $
tz)
{
-
+ $ar = explode('/', $tz->Name);
+ str_replace('_', ' ', $ar[1]) . ' (GMT ' . self::toTimeOffset($dt,$tz) . ')';
}