r74031 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r74030‎ | r74031 | r74032 >
Date:18:18, 30 September 2010
Author:nikerabbit
Status:ok
Tags:
Comment:
Fix X-POT-Import-date formatting
Modified paths:
  • /trunk/extensions/Translate/ffs/Gettext.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/ffs/Gettext.php
@@ -342,8 +342,8 @@
343343 $specs['PO-Revision-Date'] = self::formatTime( wfTimestampNow() );
344344 if ( $this->offlineMode ) {
345345 $specs['POT-Creation-Date'] = self::formatTime( wfTimestampNow() );
346 - } else {
347 - $specs['X-POT-Import-Date'] = self::formatTime( $this->getPotTime() );
 346+ } elseif ( $this->group instanceof MessageGroupBase ) {
 347+ $specs['X-POT-Import-Date'] = self::formatTime( wfTimestamp( TS_MW, $this->getPotTime() ) );
348348 }
349349 $specs['Language-Team'] = "$name <$portal>";
350350 $specs['Content-Type'] = 'text/plain; charset=UTF-8';

Status & tagging log