You are here

protected function TimestampNormalizer::getNormalizationTimezone in JSON:API 8.2

Gets the timezone to be used during normalization.

@returns \DateTimeZone The timezone to use.

Overrides DateTimeNormalizer::getNormalizationTimezone

See also

::normalize

File

src/ForwardCompatibility/Normalizer/TimestampNormalizer.php, line 48

Class

TimestampNormalizer
Converts values for the Timestamp data type to and from common formats.

Namespace

Drupal\jsonapi\ForwardCompatibility\Normalizer

Code

protected function getNormalizationTimezone() {
  return new \DateTimeZone('UTC');
}