http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89922

Revision: 89922
Author:   mkroetzsch
Date:     2011-06-12 10:20:17 +0000 (Sun, 12 Jun 2011)
Log Message:
-----------
fixed code for storing modification dates

Modified Paths:
--------------
    trunk/extensions/SemanticMediaWiki/includes/SMW_ParseData.php

Modified: trunk/extensions/SemanticMediaWiki/includes/SMW_ParseData.php
===================================================================
--- trunk/extensions/SemanticMediaWiki/includes/SMW_ParseData.php       
2011-06-12 09:50:00 UTC (rev 89921)
+++ trunk/extensions/SemanticMediaWiki/includes/SMW_ParseData.php       
2011-06-12 10:20:17 UTC (rev 89922)
@@ -457,10 +457,11 @@
                $min   = intval( substr( $timestamp, 10, 2 ) );
                $sec   = intval( substr( $timestamp, 12, 2 ) );
                try {
-                       return new SMWDITime( $year, $month, $day, $hour, $min, 
$sec );
+                       return new SMWDITime( SMWDITime::CM_GREGORIAN, $year, 
$month, $day, $hour, $min, $sec );
                } catch ( SMWDataItemException $e ) {
                        // we rely on MW timestamp format above -- if it ever 
changes,
                        // exceptions might possibly occur but this should not 
prevent editing
+                       trigger_error( $e.getMessage(), E_USER_NOTICE );
                        return null;
                }
        }


_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to