Skip to content

Commit

Permalink
Merge pull request #4586 from Laravel-Backpack/remove-deprecated-strf…
Browse files Browse the repository at this point in the history
…time

remove deprecated strftime in 4.1 branch
  • Loading branch information
tabacitu committed Aug 8, 2022
2 parents 6c335a8 + 029bf53 commit 03a0ad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resources/views/crud/fields/datetime.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
$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'] : '' )));
$value = $timestamp ? strftime('%Y-%m-%dT%H:%M:%S', $timestamp) : '';
$value = $timestamp ? date('Y-m-d\TH:i:s', $timestamp) : '';
@endphp

@include('crud::fields.inc.wrapper_start')
Expand Down

0 comments on commit 03a0ad4

Please sign in to comment.