TimeZone.php
authorleon <leon@roojs.com>
Wed, 4 Oct 2023 02:35:45 +0000 (10:35 +0800)
committerleon <leon@roojs.com>
Wed, 4 Oct 2023 02:35:45 +0000 (10:35 +0800)
TimeZone.php

index 8efd544..f4cc9f3 100644 (file)
@@ -28,15 +28,13 @@ class Pman_Core_TimeZone extends Pman
             if(
                 !empty($_REQUEST['query']['area_start']) 
                 && 
-                substr(strtolower($arr[1]), 0, strlen($_REQUEST['query']['area_start'])) != strtolower($_REQUEST['query']['area_start'])
+                substr(strtolower($o['area']), 0, strlen($_REQUEST['query']['area_start'])) != strtolower($_REQUEST['query']['area_start'])
             ){
                 continue;
             }
             $data[] = array(
-                'region' => $arr[0],
-                'area' => $arr[1],
-                'offset' => $o,
-                'displayArea' => self::getDisplayArea($tz)
+                'region' => $o['region'],
+                'displayArea' => $o['displayArea']
             );
         }
 
@@ -48,8 +46,6 @@ class Pman_Core_TimeZone extends Pman
                 'totalProperty' => 'total',
                 'fields' => array(
                     'region',
-                    'area',
-                    'offset',
                     'displayArea'
                 )
             ),