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

index c99cae9..2110593 100644 (file)
@@ -79,11 +79,14 @@ class Pman_Core_TimeZone extends Pman
         return $data;
     }
 
-    // Only accept timezone in format of 'XXX/Y'
+    // timezone in format of 'XXX/YYY'
     // 'XXX' caanot be 'Etc'
     static function isValidTimeZone($timezone)
     {
-
+        // invalid timezone such as 'CET' and 'America/Argentina/Buenos_Aires'
+        if(substr_count($ce->Name, '/') != 1) {
+            continue;
+        }
     }
 
     static function getOffset($timezone)