projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a877476
)
TimeZone.php
author
leon
<leon@roojs.com>
Fri, 27 Oct 2023 04:27:23 +0000
(12:27 +0800)
committer
leon
<leon@roojs.com>
Fri, 27 Oct 2023 04:27:23 +0000
(12:27 +0800)
TimeZone.php
patch
|
blob
|
history
diff --git
a/TimeZone.php
b/TimeZone.php
index
da3de98
..
fd45d91
100644
(file)
--- a/
TimeZone.php
+++ b/
TimeZone.php
@@
-109,6
+109,12
@@
class Pman_Core_TimeZone extends Pman
return self::$timezones;
}
+
+ static function getTimeOffset($dt, $tz)
+ {
+ $date = new DateTime($dt, new DateTimeZone($tz));
+ return $date->format('P');
+ }
}
\ No newline at end of file