Skip to content

Commit 029bf53

Browse files
committed
remove deprecated strftime in 4.1 branch
1 parent 6c335a8 commit 029bf53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resources/views/crud/fields/datetime.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
1010
$timestamp = strtotime(old(square_brackets_to_dots($field['name'])) ? old(square_brackets_to_dots($field['name'])) : (isset($field['value']) ? $field['value'] : (isset($field['default']) ? $field['default'] : '' )));
1111
12-
$value = $timestamp ? strftime('%Y-%m-%dT%H:%M:%S', $timestamp) : '';
12+
$value = $timestamp ? date('Y-m-d\TH:i:s', $timestamp) : '';
1313
@endphp
1414

1515
@include('crud::fields.inc.wrapper_start')

0 commit comments

Comments
 (0)