r63948 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r63947‎ | r63948 | r63949 >
Date:14:58, 19 March 2010
Author:yaron
Status:deferred
Tags:
Comment:
Fixed initialization of date when a number is passed in
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_DV_Time.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_DV_Time.php
@@ -168,6 +168,7 @@
169169 // it's not a year, so treat it as a Julian day, but leave it as the caption and wikivalue.
170170 if ( is_numeric( $value ) && $value >= 100000 ) {
171171 $this->m_jd = $value;
 172+ $this->m_format = 3;
172173 $this->JD2Date();
173174 $this->fracToTime();
174175 $this->m_wikivalue = $value;

Status & tagging log