projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e72eac2
)
TimeZone.php
author
leon
<leon@roojs.com>
Tue, 3 Oct 2023 09:01:42 +0000
(17:01 +0800)
committer
leon
<leon@roojs.com>
Tue, 3 Oct 2023 09:01:42 +0000
(17:01 +0800)
TimeZone.php
patch
|
blob
|
history
diff --git
a/TimeZone.php
b/TimeZone.php
index
7c9e6cc
..
5915bba
100644
(file)
--- a/
TimeZone.php
+++ b/
TimeZone.php
@@
-120,7
+120,12
@@
class Pman_Core_TimeZone extends Pman
static function getFloatOffset($timezone)
{
+ self::getOffsets();
+ // invalid timezone
+ if(!isset(self::$offsets[$timezone])) {
+ return 0.0;
+ }
}