Skip to content
Snippets Groups Projects
Commit 39b2da3f authored by catch's avatar catch
Browse files

Issue #3096290 by andypost, kim.pepper, longwave, nterbogt, Berdir: Remove...

Issue #3096290 by andypost, kim.pepper, longwave, nterbogt, Berdir: Remove deprecated drupal_get_user_timezone() from DateTimeNormalizer
parent 8d6d9148
No related branches found
No related tags found
6 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!1012Issue #3226887: Hreflang on non-canonical content pages,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10,!596Issue #3046532: deleting an entity reference field, used in a contextual view, makes the whole site unrecoverable,!496Issue #2463967: Use .user.ini file for PHP settings,!144Issue #2666286: Clean up menu_ui to conform to Drupal coding standards
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment