Index: trunk/extensions/SemanticMediaWiki/includes/SMW_DV_Time.php |
— | — | @@ -96,8 +96,9 @@ |
97 | 97 | |
98 | 98 | $value = trim($value); // ignore whitespace |
99 | 99 | |
100 | | - // if it's a number, treat it as a Julian day |
101 | | - if (is_numeric($value)) { |
| 100 | + // if it's a number, and it's sufficiently high, so we know |
| 101 | + // it's not a year, treat it as a Julian day |
| 102 | + if (is_numeric($value) && $value > 100000) { |
102 | 103 | $this->m_jd = $value; |
103 | 104 | $this->JD2Date(); |
104 | 105 | return true; |