Skip to content

Commit 8a0ea55

Browse files
committed
Entry::date() handles the conversion, so we don't need to handle it here too.
1 parent 0cab171 commit 8a0ea55

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/UpdateScripts/ConvertDatesToUtc.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ private function updateDateFields($item, Fields $fields, ?string $dottedPrefix =
5858
&& empty($dottedPrefix)
5959
&& $field->handle() === 'date'
6060
) {
61-
$format = $this->formatForEntryDateField($field);
62-
63-
$item->date($item->date()->setTimezone('UTC')->format($format));
61+
$item->date($item->date());
6462

6563
return;
6664
}

0 commit comments

Comments
 (0)