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