@@ -86,14 +86,14 @@ discard block |
||
| 86 | 86 | if (\strlen($match[1]) > \strlen($match[2])) { |
| 87 | 87 | $match[2] = substr($match[1], 0, \strlen($match[1]) - \strlen($match[2])) . $match[2]; |
| 88 | 88 | } |
| 89 | - $ged_date = new Date("FROM {$cal} {$match[1]} TO {$cal} {$match[2]}"); |
|
| 89 | + $ged_date = new Date("from {$cal} {$match[1]} TO {$cal} {$match[2]}"); |
|
| 90 | 90 | $view = 'year'; |
| 91 | 91 | } else { |
| 92 | 92 | // advanced-year "decade/century wildcard" |
| 93 | 93 | if (preg_match('/^(\d+)(\?+)$/', $year, $match)) { |
| 94 | 94 | $y1 = $match[1] . str_replace('?', '0', $match[2]); |
| 95 | 95 | $y2 = $match[1] . str_replace('?', '9', $match[2]); |
| 96 | - $ged_date = new Date("FROM {$cal} {$y1} TO {$cal} {$y2}"); |
|
| 96 | + $ged_date = new Date("from {$cal} {$y1} TO {$cal} {$y2}"); |
|
| 97 | 97 | $view = 'year'; |
| 98 | 98 | } else { |
| 99 | 99 | if ($year < 0) { |
@@ -204,14 +204,14 @@ discard block |
||
| 204 | 204 | if (\strlen($match[1]) > \strlen($match[2])) { |
| 205 | 205 | $match[2] = substr($match[1], 0, \strlen($match[1]) - \strlen($match[2])) . $match[2]; |
| 206 | 206 | } |
| 207 | - $ged_date = new Date("FROM {$cal} {$match[1]} TO {$cal} {$match[2]}"); |
|
| 207 | + $ged_date = new Date("from {$cal} {$match[1]} TO {$cal} {$match[2]}"); |
|
| 208 | 208 | $view = 'year'; |
| 209 | 209 | } else { |
| 210 | 210 | // advanced-year "decade/century wildcard" |
| 211 | 211 | if (preg_match('/^(\d+)(\?+)$/', $year, $match)) { |
| 212 | 212 | $y1 = $match[1] . str_replace('?', '0', $match[2]); |
| 213 | 213 | $y2 = $match[1] . str_replace('?', '9', $match[2]); |
| 214 | - $ged_date = new Date("FROM {$cal} {$y1} TO {$cal} {$y2}"); |
|
| 214 | + $ged_date = new Date("from {$cal} {$y1} TO {$cal} {$y2}"); |
|
| 215 | 215 | $view = 'year'; |
| 216 | 216 | } else { |
| 217 | 217 | if ($year < 0) { |