projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00cf5ac
)
TimeZone.php
author
leon
<leon@roojs.com>
Tue, 3 Oct 2023 02:35:46 +0000
(10:35 +0800)
committer
leon
<leon@roojs.com>
Tue, 3 Oct 2023 02:35:46 +0000
(10:35 +0800)
TimeZone.php
patch
|
blob
|
history
diff --git
a/TimeZone.php
b/TimeZone.php
index
c99cae9
..
2110593
100644
(file)
--- a/
TimeZone.php
+++ b/
TimeZone.php
@@
-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/YY
Y'
// '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)