Skip to content

Commit

Permalink
Fix for: zen_draw_date_selector "times out" in 2018
Browse files Browse the repository at this point in the history
  • Loading branch information
drbyte committed Dec 11, 2015
1 parent 121af75 commit be1fe53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/includes/functions/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -2010,7 +2010,7 @@ function zen_draw_date_selector($prefix, $date='') {
}
$date_selector .= '</select>';
$date_selector .= '<select name="'. $prefix .'_year">';
for ($i=2001;$i<2019;$i++){
for ($i=date('Y')-5; $i<date('Y')+11; $i++) {
$date_selector .= '<option value="' . $i . '"';
if ($i==$year) $date_selector .= 'selected';
$date_selector .= '>' . $i . '</option>';
Expand Down

0 comments on commit be1fe53

Please sign in to comment.