Issue #3096290 by andypost, kim.pepper, longwave, nterbogt, Berdir: Remove deprecated drupal_get_user_timezone() from DateTimeNormalizer
parent
8d6d9148cd
commit
39b2da3f0f
|
@ -64,8 +64,6 @@ class DateTimeNormalizer extends NormalizerBase implements DenormalizerInterface
|
||||||
// Set an explicit timezone. Otherwise, timestamps may end up being
|
// Set an explicit timezone. Otherwise, timestamps may end up being
|
||||||
// normalized using the user's preferred timezone. Which would result in
|
// normalized using the user's preferred timezone. Which would result in
|
||||||
// many variations and complex caching.
|
// many variations and complex caching.
|
||||||
// @see \Drupal\Core\Datetime\DrupalDateTime::prepareTimezone()
|
|
||||||
// @see drupal_get_user_timezone()
|
|
||||||
->setTimezone($this->getNormalizationTimezone())
|
->setTimezone($this->getNormalizationTimezone())
|
||||||
->format(\DateTime::RFC3339);
|
->format(\DateTime::RFC3339);
|
||||||
}
|
}
|
||||||
|
@ -74,6 +72,7 @@ class DateTimeNormalizer extends NormalizerBase implements DenormalizerInterface
|
||||||
* Gets the timezone to be used during normalization.
|
* Gets the timezone to be used during normalization.
|
||||||
*
|
*
|
||||||
* @see ::normalize
|
* @see ::normalize
|
||||||
|
* @see \Drupal\Core\Datetime\DrupalDateTime::prepareTimezone()
|
||||||
*
|
*
|
||||||
* @returns \DateTimeZone
|
* @returns \DateTimeZone
|
||||||
* The timezone to use.
|
* The timezone to use.
|
||||||
|
|
Loading…
Reference in New Issue