fix problem with timezone in feed #424

darcs-hash:20060924195618-7ad00-47d67044c2d03eb9d90a7209fd23ab6c151c5e00.gz
This commit is contained in:
Andreas Gohr
2006-09-24 21:56:18 +02:00
parent 67c803279c
commit c3d8ffc5d6

View File

@ -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;
}