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
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