r89922 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89921‎ | r89922 | r89923 >
Date:10:20, 12 June 2011
Author:mkroetzsch
Status:deferred
Tags:
Comment:
fixed code for storing modification dates
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_ParseData.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_ParseData.php
@@ -457,10 +457,11 @@
458458 $min = intval( substr( $timestamp, 10, 2 ) );
459459 $sec = intval( substr( $timestamp, 12, 2 ) );
460460 try {
461 - return new SMWDITime( $year, $month, $day, $hour, $min, $sec );
 461+ return new SMWDITime( SMWDITime::CM_GREGORIAN, $year, $month, $day, $hour, $min, $sec );
462462 } catch ( SMWDataItemException $e ) {
463463 // we rely on MW timestamp format above -- if it ever changes,
464464 // exceptions might possibly occur but this should not prevent editing
 465+ trigger_error( $e.getMessage(), E_USER_NOTICE );
465466 return null;
466467 }
467468 }