core/modules/hal/src/Normalizer/TimestampItemNormalizer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/hal/src/Normalizer/TimestampItemNormalizer.php b/core/modules/hal/src/Normalizer/TimestampItemNormalizer.php index 476e7f5..2cda0fa 100644 --- a/core/modules/hal/src/Normalizer/TimestampItemNormalizer.php +++ b/core/modules/hal/src/Normalizer/TimestampItemNormalizer.php @@ -41,7 +41,7 @@ protected function constructValue($data, $context) { if (!empty($data['format'])) { $context['datetime_format'] = $data['format']; } - return $this->serializer->denormalize($data, Timestamp::class, NULL, $context); + return ['value' => $this->serializer->denormalize($data['value'], Timestamp::class, NULL, $context)]; } }