Removed UTC specification with timestamp
This commit is contained in:
parent
76223b2dd6
commit
0d14aac880
@ -126,7 +126,7 @@ class DateTimeToLocalizedStringTransformer extends BaseDateTimeTransformer
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
// read timestamp into DateTime object - the formatter delivers in UTC
|
// read timestamp into DateTime object - the formatter delivers in UTC
|
||||||
$dateTime = new \DateTime(sprintf('@%s UTC', $timestamp));
|
$dateTime = new \DateTime(sprintf('@%s', $timestamp));
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
throw new TransformationFailedException($e->getMessage(), $e->getCode(), $e);
|
throw new TransformationFailedException($e->getMessage(), $e->getCode(), $e);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user