From d355f8af725f1f1ded7411d3a136aca18be80268 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 5 Sep 2005 07:27:08 +0000 Subject: [PATCH] Live hack: don't blow up on empty/broken timestamps. (It will however output wrong date.) --- includes/SpecialExport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) { -- 2.20.1