From: leon Date: Fri, 27 Oct 2023 05:09:38 +0000 (+0800) Subject: TimeZone.php X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=5432363adb27165cbacfca920ee69b5c26aec698;p=Pman.Core TimeZone.php --- diff --git a/TimeZone.php b/TimeZone.php index 4fbac3a8..2e02df94 100644 --- 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) . ')'; }