TimeZone.php
authorleon <leon@roojs.com>
Tue, 3 Oct 2023 02:54:24 +0000 (10:54 +0800)
committerleon <leon@roojs.com>
Tue, 3 Oct 2023 02:54:24 +0000 (10:54 +0800)
TimeZone.php

index a184e37..8cb561a 100644 (file)
@@ -26,6 +26,7 @@ class Pman_Core_TimeZone extends Pman
                 'region' => $arr[0],
                 'area' => $arr[1],
                 'offset' => $offset
+                'displayArea' => $
             )
         }
 
@@ -90,21 +91,5 @@ class Pman_Core_TimeZone extends Pman
         return self::$timezones;
     }
 
-    static function getOffset($timezone)
-    {
-        $ce = DB_DataObject::factory('core_enum');
-        $ce->query('
-            SELECT
-                TIME_FORMAT(TIMEDIFF(NOW(), CONVERT_TZ(NOW(), Name, "UTC")), "%H:%i") as offset
-            FROM
-                mysql.time_zone_name
-            WHERE
-                Name = "' . $ce->escape($timezone) . '"
-        ');
-        $ce->fetch();
-
-        return empty($ce->offset) ? '' : $ce->offset;
-    }
-
     
 }
\ No newline at end of file