mirror of
https://github.com/VladPolskiy/dokuwiki.git
synced 2025-08-15 22:25:03 +00:00
fix problem with timezone in feed #424
darcs-hash:20060924195618-7ad00-47d67044c2d03eb9d90a7209fd23ab6c151c5e00.gz
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user