[Locale] removed redundant code

This commit is contained in:
Eriksen Costa 2011-03-01 02:14:08 -03:00
parent 2a06139a97
commit a04099728b

View File

@ -122,12 +122,8 @@ class StubIntlDateFormatter
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());
$formatted = $transformer->format($dateTime);
$formatted = $transformer->format($this->createDateTime($timestamp));
return $formatted;
}