projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
TimeZone.php
[Pman.Core]
/
TimeZone.php
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];
}