Skip to content
Snippets Groups Projects
Commit 968020ca authored by Nick Schoonens's avatar Nick Schoonens Committed by Clemens Tolboom
Browse files

Issue #2999505 by Schoonzie: Improve date handling

parent d8c930fc
Branches
Tags 8.x-2.0-alpha2
No related merge requests found
......@@ -332,7 +332,7 @@ class ExternalEntityStorage extends ContentEntityStorageBase implements External
$format = DateTimeItemInterface::DATETIME_STORAGE_FORMAT;
break;
}
$item['value'] = \Drupal::service('date.formatter')->format($timestamp, 'custom', $format);
$item['value'] = \Drupal::service('date.formatter')->format($timestamp, 'custom', $format, "UTC");
}
else {
$item['value'] = $timestamp;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment