From 39b2da3f0f4b722014a37f5598701f0e152c896c Mon Sep 17 00:00:00 2001
From: catch <catch@35733.no-reply.drupal.org>
Date: Thu, 28 Nov 2019 12:32:51 +0000
Subject: [PATCH] Issue #3096290 by andypost, kim.pepper, longwave, nterbogt,
 Berdir: Remove deprecated drupal_get_user_timezone() from DateTimeNormalizer

---
 .../serialization/src/Normalizer/DateTimeNormalizer.php        | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/core/modules/serialization/src/Normalizer/DateTimeNormalizer.php b/core/modules/serialization/src/Normalizer/DateTimeNormalizer.php
index 209d15201b5d..b84e170d6b75 100644
--- a/core/modules/serialization/src/Normalizer/DateTimeNormalizer.php
+++ b/core/modules/serialization/src/Normalizer/DateTimeNormalizer.php
@@ -64,8 +64,6 @@ public function normalize($datetime, $format = NULL, array $context = []) {
       // Set an explicit timezone. Otherwise, timestamps may end up being
       // normalized using the user's preferred timezone. Which would result in
       // many variations and complex caching.
-      // @see \Drupal\Core\Datetime\DrupalDateTime::prepareTimezone()
-      // @see drupal_get_user_timezone()
       ->setTimezone($this->getNormalizationTimezone())
       ->format(\DateTime::RFC3339);
   }
@@ -74,6 +72,7 @@ public function normalize($datetime, $format = NULL, array $context = []) {
    * Gets the timezone to be used during normalization.
    *
    * @see ::normalize
+   * @see \Drupal\Core\Datetime\DrupalDateTime::prepareTimezone()
    *
    * @returns \DateTimeZone
    *   The timezone to use.
-- 
GitLab