r55416 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r55415‎ | r55416 | r55417 >
Date:16:05, 21 August 2009
Author:greg
Status:deferred
Tags:
Comment:
Use properly formatted timestamp versions when building list of notices.
Modified paths:
  • /trunk/extensions/CentralNotice/SpecialCentralNotice.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralNotice/SpecialCentralNotice.php
@@ -457,13 +457,13 @@
458458 }
459459
460460 // Date and time calculations
461 - $start_timestamp = $row->not_start;
 461+ $start_timestamp = wfTimestamp( TS_MW, $row->not_start );
462462 $start_year = substr( $start_timestamp, 0 , 4 );
463463 $start_month = substr( $start_timestamp, 4, 2 );
464464 $start_day = substr( $start_timestamp, 6, 2 );
465465 $start_hour = substr( $start_timestamp, 8, 2 );
466466 $start_min = substr( $start_timestamp, 10, 2 );
467 - $end_timestamp = $row->not_end;
 467+ $end_timestamp = wfTimestamp( TS_MW, $row->not_end );
468468 $end_year = substr( $end_timestamp, 0 , 4 );
469469 $end_month = substr( $end_timestamp, 4, 2 );
470470 $end_day = substr( $end_timestamp, 6, 2 );

Status & tagging log