Skip to content

Commit 9b3f801

Browse files
authored
Merge pull request #4585 from Laravel-Backpack/refactor-datetime
remove deprecated strftime() in PHP 8.1
2 parents 1113f55 + 8c21bea commit 9b3f801

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_empty_or_null($field['name'], '') ?? $field['value'] ?? $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)