Live hack: don't blow up on empty/broken timestamps. (It will however output wrong...
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 5 Sep 2005 07:27:08 +0000 (07:27 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 5 Sep 2005 07:27:08 +0000 (07:27 +0000)
includes/SpecialExport.php

index 1ce1f4f..d15971b 100644 (file)
@@ -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 ) {