Index: trunk/extensions/SemanticMediaWiki/includes/SMW_ParseData.php |
— | — | @@ -457,10 +457,11 @@ |
458 | 458 | $min = intval( substr( $timestamp, 10, 2 ) ); |
459 | 459 | $sec = intval( substr( $timestamp, 12, 2 ) ); |
460 | 460 | try { |
461 | | - return new SMWDITime( $year, $month, $day, $hour, $min, $sec ); |
| 461 | + return new SMWDITime( SMWDITime::CM_GREGORIAN, $year, $month, $day, $hour, $min, $sec ); |
462 | 462 | } catch ( SMWDataItemException $e ) { |
463 | 463 | // we rely on MW timestamp format above -- if it ever changes, |
464 | 464 | // exceptions might possibly occur but this should not prevent editing |
| 465 | + trigger_error( $e.getMessage(), E_USER_NOTICE ); |
465 | 466 | return null; |
466 | 467 | } |
467 | 468 | } |