diff --git a/resources/macros/macros.php b/resources/macros/macros.php index 3f3c3c23f1..43dc2cc2e0 100644 --- a/resources/macros/macros.php +++ b/resources/macros/macros.php @@ -59,9 +59,9 @@ 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-m-d'))->format($format); } - $select = ''; foreach ($date_display_formats as $format => $date_display_format) { $select .= ' '; } diff --git a/resources/views/settings/localization.blade.php b/resources/views/settings/localization.blade.php index 6e126dee64..a74387b32d 100644 --- a/resources/views/settings/localization.blade.php +++ b/resources/views/settings/localization.blade.php @@ -38,7 +38,7 @@
-
+
@@ -52,18 +52,21 @@
+
{{ Form::label('time_display_format', trans('general.time_and_date_display')) }}
-
+
{!! Form::date_display_format('date_display_format', Request::old('date_display_format', $setting->date_display_format), 'select2') !!} - - {!! Form::time_display_format('time_display_format', Request::old('time_display_format', $setting->time_display_format), 'select2') !!} - - {!! $errors->first('time_display_format', '') !!}
+
+ {!! Form::time_display_format('time_display_format', Request::old('time_display_format', $setting->time_display_format), 'select2') !!} +
+ + {!! $errors->first('time_display_format', '
') !!} +