projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f350f50
)
TimeZone.php
author
leon
<leon@roojs.com>
Fri, 27 Oct 2023 07:17:27 +0000
(15:17 +0800)
committer
leon
<leon@roojs.com>
Fri, 27 Oct 2023 07:17:27 +0000
(15:17 +0800)
TimeZone.php
patch
|
blob
|
history
diff --git
a/TimeZone.php
b/TimeZone.php
index
b32c0cd
..
ff141ca
100644
(file)
--- a/
TimeZone.php
+++ b/
TimeZone.php
@@
-122,6
+122,9
@@
class Pman_Core_TimeZone extends Pman
static function toRegion($tz)
{
+ if(!self::isValidTimeZone($tz)) {
+ return false;
+ }
return explode('/', $tz)[0];
}