[Locale] removed redundant code
This commit is contained in:
parent
2a06139a97
commit
a04099728b
@ -122,12 +122,8 @@ class StubIntlDateFormatter
|
|||||||
throw new MethodArgumentValueNotImplementedException(__METHOD__, 'timestamp', $timestamp, 'Only the integer unix timestamps are supported');
|
throw new MethodArgumentValueNotImplementedException(__METHOD__, 'timestamp', $timestamp, 'Only the integer unix timestamps are supported');
|
||||||
}
|
}
|
||||||
|
|
||||||
$dateTime = $this->createDateTime($timestamp);
|
|
||||||
$dateTime->setTimestamp($timestamp);
|
|
||||||
$dateTime->setTimezone($this->dateTimeZone);
|
|
||||||
|
|
||||||
$transformer = new FullTransformer($this->getPattern(), $this->getTimeZoneId());
|
$transformer = new FullTransformer($this->getPattern(), $this->getTimeZoneId());
|
||||||
$formatted = $transformer->format($dateTime);
|
$formatted = $transformer->format($this->createDateTime($timestamp));
|
||||||
|
|
||||||
return $formatted;
|
return $formatted;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user