summaryrefslogtreecommitdiff
path: root/inc/feedcreator.class.php
diff options
context:
space:
mode:
authorMichael Hamann <michael@content-space.de>2010-10-10 14:26:22 +0200
committerMichael Hamann <michael@content-space.de>2010-10-10 14:26:22 +0200
commit762b4c44c691f69d521413d7016314e7f547c102 (patch)
tree95ab294b1df2f8c7a5efb56762a0f284bec3754e /inc/feedcreator.class.php
parenteae17177de8f3f3580af5ea66d126aee0f23227f (diff)
parent4ea48b361401e136dbfd3339af368ceeb5b27480 (diff)
downloadrpg-762b4c44c691f69d521413d7016314e7f547c102.tar.gz
rpg-762b4c44c691f69d521413d7016314e7f547c102.tar.bz2
Merge remote branch 'origin/master' into sitemap
Diffstat (limited to 'inc/feedcreator.class.php')
-rw-r--r--inc/feedcreator.class.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/inc/feedcreator.class.php b/inc/feedcreator.class.php
index e7b8d7afc..68b9bdd2b 100644
--- a/inc/feedcreator.class.php
+++ b/inc/feedcreator.class.php
@@ -685,7 +685,8 @@ class FeedDate {
$months = Array("Jan"=>1,"Feb"=>2,"Mar"=>3,"Apr"=>4,"May"=>5,"Jun"=>6,"Jul"=>7,"Aug"=>8,"Sep"=>9,"Oct"=>10,"Nov"=>11,"Dec"=>12);
$this->unix = mktime($matches[4],$matches[5],$matches[6],$months[$matches[2]],$matches[1],$matches[3]);
if (substr($matches[7],0,1)=='+' OR substr($matches[7],0,1)=='-') {
- $tzOffset = (substr($matches[7],0,3) * 60 + substr($matches[7],-2)) * 60;
+ $tzOffset = (((int) substr($matches[7],0,3) * 60) +
+ (int) substr($matches[7],-2)) * 60;
} else {
if (strlen($matches[7])==1) {
$oneHour = 3600;
@@ -709,7 +710,8 @@ class FeedDate {
if (preg_match("~(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2})(.*)~",$dateString,$matches)) {
$this->unix = mktime($matches[4],$matches[5],$matches[6],$matches[2],$matches[3],$matches[1]);
if (substr($matches[7],0,1)=='+' OR substr($matches[7],0,1)=='-') {
- $tzOffset = (substr($matches[7],0,3) * 60 + substr($matches[7],-2)) * 60;
+ $tzOffset = (((int) substr($matches[7],0,3) * 60) +
+ (int) substr($matches[7],-2)) * 60;
} else {
if ($matches[7]=="Z") {
$tzOffset = 0;