core/lib/Drupal/Core/TypedData/Plugin/DataType/DateTimeIso8601.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/lib/Drupal/Core/TypedData/Plugin/DataType/DateTimeIso8601.php b/core/lib/Drupal/Core/TypedData/Plugin/DataType/DateTimeIso8601.php index 3fe189f..41b12b3 100644 --- a/core/lib/Drupal/Core/TypedData/Plugin/DataType/DateTimeIso8601.php +++ b/core/lib/Drupal/Core/TypedData/Plugin/DataType/DateTimeIso8601.php @@ -23,10 +23,10 @@ class DateTimeIso8601 extends StringData implements DateTimeInterface { public function getDateTime() { if ($this->value) { if (is_array($this->value)) { - $datetime = DrupalDateTime::createFromArray($this->value); + $datetime = DrupalDateTime::createFromArray($this->value, 'UTC'); } else { - $datetime = new DrupalDateTime($this->value); + $datetime = new DrupalDateTime($this->value, 'UTC'); } return $datetime; }