From c3d8ffc5d6dbebdf9125ecb0dd1fdf51a1394015 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sun, 24 Sep 2006 21:56:18 +0200 Subject: fix problem with timezone in feed #424 darcs-hash:20060924195618-7ad00-47d67044c2d03eb9d90a7209fd23ab6c151c5e00.gz --- inc/feedcreator.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/feedcreator.class.php b/inc/feedcreator.class.php index 8fe69ba1f..bbe3220e1 100644 --- a/inc/feedcreator.class.php +++ b/inc/feedcreator.class.php @@ -59,7 +59,7 @@ * See www.bitfolge.de for additional changelog info */ // your local timezone, set to "" to disable or for GMT -define("TIME_ZONE",""); +define("TIME_ZONE",date("O", time())); @@ -740,8 +740,8 @@ class FeedDate { */ function iso8601() { $date = gmdate("Y-m-d\TH:i:sO",$this->unix); + if (TIME_ZONE!="") $date = str_replace("+0000",TIME_ZONE,$date); $date = substr($date,0,22) . ':' . substr($date,-2); - if (TIME_ZONE!="") $date = str_replace("+00:00",TIME_ZONE,$date); return $date; } -- cgit v1.2.3