diff options
| author | Greg Roach <fisharebest@gmail.com> | 2015-10-20 23:32:40 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2015-10-20 23:32:40 +0100 |
| commit | 8450d214e58b001bc32a69eb7858e8bc6e52a363 (patch) | |
| tree | 0fb45d38b0a0a99da4804e011f12fb3c9d50e74a /app/Functions | |
| parent | cecd85e0ab5cbe6b6e54f43e29751a047329fce1 (diff) | |
| download | webtrees-8450d214e58b001bc32a69eb7858e8bc6e52a363.tar.gz webtrees-8450d214e58b001bc32a69eb7858e8bc6e52a363.tar.bz2 webtrees-8450d214e58b001bc32a69eb7858e8bc6e52a363.zip | |
Multi-year census date range
Diffstat (limited to 'app/Functions')
| -rw-r--r-- | app/Functions/FunctionsEdit.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Functions/FunctionsEdit.php b/app/Functions/FunctionsEdit.php index 335ecb13cb..871d7846b7 100644 --- a/app/Functions/FunctionsEdit.php +++ b/app/Functions/FunctionsEdit.php @@ -1030,7 +1030,7 @@ class FunctionsEdit { $options .= '<option value=""></option>'; foreach ($census_place->allCensusDates() as $census) { $date = new Date($census->censusDate()); - $year = $date->minimumDate()->format('%Y'); + $year = $date->display(false, '%Y', false); $place_hierarchy = explode(', ', $census->censusPlace()); $options .= '<option value="' . $census->censusDate() . '" data-place="' . $census->censusPlace() . '" data-census="' . get_class($census) . '">' . $place_hierarchy[0] . ' ' . $year . '</option>'; } |
