mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Clearer time example display
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
b39a7c6f0c
commit
f9172594b2
|
@ -84,8 +84,9 @@ Form::macro('time_display_format', function ($name = 'time_display_format', $sel
|
|||
'H:i',
|
||||
];
|
||||
|
||||
$datetime = date("y-m-d").' 14:00:00';
|
||||
foreach ($formats as $format) {
|
||||
$time_display_formats[$format] = Carbon::now()->format($format);
|
||||
$time_display_formats[$format] = Carbon::parse($datetime)->format($format);
|
||||
}
|
||||
$select = '<select name="'.$name.'" class="'.$class.'" style="min-width:150px" aria-label="'.$name.'">';
|
||||
foreach ($time_display_formats as $format => $time_display_format) {
|
||||
|
|
Loading…
Reference in a new issue