mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
Fixed #5354 - adds dd/mm/yyyy to localization
This commit is contained in:
parent
086683319a
commit
968d7d1f11
|
@ -366,12 +366,14 @@ Form::macro('date_display_format', function ($name = "date_display_format", $sel
|
|||
'd M, Y',
|
||||
'm/d/Y',
|
||||
'n/d/y',
|
||||
'd/m/Y',
|
||||
'm/j/Y',
|
||||
'd.m.Y',
|
||||
];
|
||||
|
||||
foreach ($formats as $format) {
|
||||
$date_display_formats[$format] = Carbon::now()->format($format);
|
||||
|
||||
$date_display_formats[$format] = Carbon::parse(date('Y').'-'.date('m').'-25')->format($format);
|
||||
}
|
||||
$select = '<select name="'.$name.'" class="'.$class.'" style="min-width:250px">';
|
||||
foreach ($date_display_formats as $format => $date_display_format) {
|
||||
|
|
Loading…
Reference in a new issue