diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-09-24 21:56:18 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-09-24 21:56:18 +0200 |
commit | c3d8ffc5d6dbebdf9125ecb0dd1fdf51a1394015 (patch) | |
tree | eb2dfe6a785aeb8f052a9561855a156e4c4336fe /inc | |
parent | 67c803279c25ed4cc57f20cc63745dd1a9ac4e9e (diff) | |
download | rpg-c3d8ffc5d6dbebdf9125ecb0dd1fdf51a1394015.tar.gz rpg-c3d8ffc5d6dbebdf9125ecb0dd1fdf51a1394015.tar.bz2 |
fix problem with timezone in feed #424
darcs-hash:20060924195618-7ad00-47d67044c2d03eb9d90a7209fd23ab6c151c5e00.gz
Diffstat (limited to 'inc')
-rw-r--r-- | inc/feedcreator.class.php | 4 |
1 files 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; } |