diff options
author | Adrian Lang <mail@adrianlang.de> | 2010-10-07 09:44:02 +0200 |
---|---|---|
committer | Adrian Lang <mail@adrianlang.de> | 2010-10-07 09:44:02 +0200 |
commit | d9c8ae6b7379d7b64d4817dbd5cca276b45a9dd5 (patch) | |
tree | 39c26d5412170ca4fa176962e60e9962dc643667 /inc/feedcreator.class.php | |
parent | 2c053ed58376c6709596ab48fc40dceb90d4e89d (diff) | |
parent | 85dd53ceb1c2d9a7abe01b5ec50d155dcb142c59 (diff) | |
download | rpg-d9c8ae6b7379d7b64d4817dbd5cca276b45a9dd5.tar.gz rpg-d9c8ae6b7379d7b64d4817dbd5cca276b45a9dd5.tar.bz2 |
Merge branch 'master' into stable
Diffstat (limited to 'inc/feedcreator.class.php')
-rw-r--r-- | inc/feedcreator.class.php | 6 |
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; |