@@ -93,13 +93,13 @@ discard block |
||
93 | 93 | if (strlen($match[1]) > strlen($match[2])) { |
94 | 94 | $match[2] = substr($match[1], 0, strlen($match[1]) - strlen($match[2])) . $match[2]; |
95 | 95 | } |
96 | - $ged_date = new Date("FROM {$cal} {$match[1]} TO {$cal} {$match[2]}"); |
|
96 | + $ged_date = new Date("from {$cal} {$match[1]} TO {$cal} {$match[2]}"); |
|
97 | 97 | $view = 'year'; |
98 | 98 | } elseif (preg_match('/^(\d+)(\?+)$/', $year, $match)) { |
99 | 99 | // advanced-year "decade/century wildcard" |
100 | 100 | $y1 = $match[1] . str_replace('?', '0', $match[2]); |
101 | 101 | $y2 = $match[1] . str_replace('?', '9', $match[2]); |
102 | - $ged_date = new Date("FROM {$cal} {$y1} TO {$cal} {$y2}"); |
|
102 | + $ged_date = new Date("from {$cal} {$y1} TO {$cal} {$y2}"); |
|
103 | 103 | $view = 'year'; |
104 | 104 | } else { |
105 | 105 | if ($year < 0) { |
@@ -210,13 +210,13 @@ discard block |
||
210 | 210 | if (strlen($match[1]) > strlen($match[2])) { |
211 | 211 | $match[2] = substr($match[1], 0, strlen($match[1]) - strlen($match[2])) . $match[2]; |
212 | 212 | } |
213 | - $ged_date = new Date("FROM {$cal} {$match[1]} TO {$cal} {$match[2]}"); |
|
213 | + $ged_date = new Date("from {$cal} {$match[1]} TO {$cal} {$match[2]}"); |
|
214 | 214 | $view = 'year'; |
215 | 215 | } elseif (preg_match('/^(\d+)(\?+)$/', $year, $match)) { |
216 | 216 | // advanced-year "decade/century wildcard" |
217 | 217 | $y1 = $match[1] . str_replace('?', '0', $match[2]); |
218 | 218 | $y2 = $match[1] . str_replace('?', '9', $match[2]); |
219 | - $ged_date = new Date("FROM {$cal} {$y1} TO {$cal} {$y2}"); |
|
219 | + $ged_date = new Date("from {$cal} {$y1} TO {$cal} {$y2}"); |
|
220 | 220 | $view = 'year'; |
221 | 221 | } else { |
222 | 222 | if ($year < 0) { |