r72327 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r72326‎ | r72327 | r72328 >
Date:22:12, 3 September 2010
Author:kaldari
Status:ok
Tags:
Comment:
extra fix for end time support (r72318)
Modified paths:
  • /trunk/extensions/CentralNotice/SpecialCentralNotice.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralNotice/SpecialCentralNotice.php
@@ -386,12 +386,14 @@
387387 $end_year = substr( $end_timestamp, 0 , 4 );
388388 $end_month = substr( $end_timestamp, 4, 2 );
389389 $end_day = substr( $end_timestamp, 6, 2 );
 390+ $end_hour = substr( $end_timestamp, 8, 2 );
 391+ $end_min = substr( $end_timestamp, 10, 2 );
390392
391393 // Start
392394 $fields[] = "{$start_year}/{$start_month}/{$start_day} {$start_hour}:{$start_min}";
393395
394396 // End
395 - $fields[] = "{$end_year}/{$end_month}/{$end_day}";
 397+ $fields[] = "{$end_year}/{$end_month}/{$end_day} {$end_hour}:{$end_min}";
396398
397399 // Enabled
398400 $fields[] =

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r72318adding support for end time (Bug 20228) and fixing start date bugkaldari21:52, 3 September 2010

Status & tagging log