From: Brion Vibber Date: Mon, 5 Sep 2005 07:27:08 +0000 (+0000) Subject: Live hack: don't blow up on empty/broken timestamps. (It will however output wrong... X-Git-Tag: 1.6.0~1722 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=d355f8af725f1f1ded7411d3a136aca18be80268;p=lhc%2Fweb%2Fwiklou.git Live hack: don't blow up on empty/broken timestamps. (It will however output wrong date.) --- diff --git a/includes/SpecialExport.php b/includes/SpecialExport.php index 1ce1f4f737..d15971beff 100644 --- a/includes/SpecialExport.php +++ b/includes/SpecialExport.php @@ -410,7 +410,7 @@ class WikiExporter { function wfTimestamp2ISO8601( $ts ) { #2003-08-05T18:30:02Z - return preg_replace( '/^(....)(..)(..)(..)(..)(..)$/', '$1-$2-$3T$4:$5:$6Z', $ts ); + return preg_replace( '/^(....)(..)(..)(..)(..)(..)$/', '$1-$2-$3T$4:$5:$6Z', wfTimestamp( TS_MW, $ts ) ); } function xmlsafe( $string ) {