function TimestampNormalizer::getNormalizationTimezone
Same name in other branches
- 8.9.x core/modules/serialization/src/Normalizer/TimestampNormalizer.php \Drupal\serialization\Normalizer\TimestampNormalizer::getNormalizationTimezone()
- 10 core/modules/serialization/src/Normalizer/TimestampNormalizer.php \Drupal\serialization\Normalizer\TimestampNormalizer::getNormalizationTimezone()
- 11.x core/modules/serialization/src/Normalizer/TimestampNormalizer.php \Drupal\serialization\Normalizer\TimestampNormalizer::getNormalizationTimezone()
Overrides DateTimeNormalizer::getNormalizationTimezone
File
-
core/
modules/ serialization/ src/ Normalizer/ TimestampNormalizer.php, line 35
Class
- TimestampNormalizer
- Converts values for the Timestamp data type to and from common formats.
Namespace
Drupal\serialization\NormalizerCode
protected function getNormalizationTimezone() {
return new \DateTimeZone('UTC');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.