r10907 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r10906‎ | r10907 | r10908 >
Date:07:27, 5 September 2005
Author:vibber
Status:old
Tags:
Comment:
Live hack: don't blow up on empty/broken timestamps. (It will however output wrong date.)
Modified paths:
  • /trunk/phase3/includes/SpecialExport.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialExport.php
@@ -410,7 +410,7 @@
411411
412412 function wfTimestamp2ISO8601( $ts ) {
413413 #2003-08-05T18:30:02Z
414 - return preg_replace( '/^(....)(..)(..)(..)(..)(..)$/', '$1-$2-$3T$4:$5:$6Z', $ts );
 414+ return preg_replace( '/^(....)(..)(..)(..)(..)(..)$/', '$1-$2-$3T$4:$5:$6Z', wfTimestamp( TS_MW, $ts ) );
415415 }
416416
417417 function xmlsafe( $string ) {

Status & tagging log