TimeZone.php
authorleon <leon@roojs.com>
Tue, 3 Oct 2023 05:25:26 +0000 (13:25 +0800)
committerleon <leon@roojs.com>
Tue, 3 Oct 2023 05:25:26 +0000 (13:25 +0800)
TimeZone.php

index 499341e..a9f1919 100644 (file)
@@ -22,6 +22,10 @@ class Pman_Core_TimeZone extends Pman
 
         foreach(self::$offsets as $tz => $o) {
             $arr = explode('/', $tz);
+
+            if(!empty($_REQUEST['region']) && $_REQUEST['region'] != $arr[0]) {
+                continue;
+            }
             $data[] = array(
                 'region' => $arr[0],
                 'area' => $arr[1],