Make date example reflect actual date

This commit is contained in:
snipe 2020-09-28 19:01:58 -07:00
parent dafac4ceb3
commit 186e229190

View file

@ -377,7 +377,7 @@ Form::macro('date_display_format', function ($name = "date_display_format", $sel
foreach ($formats as $format) {
$date_display_formats[$format] = Carbon::parse(date('Y').'-'.date('m').'-25')->format($format);
$date_display_formats[$format] = Carbon::parse(date('Y').'-'.date('m').'-'.date('d'))->format($format);
}
$select = '<select name="'.$name.'" class="'.$class.'" style="min-width:250px" aria-label="'.$name.'">';
foreach ($date_display_formats as $format => $date_display_format) {