Skip to content

Commit 95072fc

Browse files
author
Edwin Hermans
committed
Removing unneccessary code - SF2 already requires more
1 parent 851c369 commit 95072fc

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Util/DateFormatter.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@ public function format($date, $dateType = 'medium', $timeType = 'none', $locale
5151
{
5252
$dateFormatter = \IntlDateFormatter::create($locale ?: \Locale::getDefault(), $this->formats[$dateType], $this->formats[$timeType], date_default_timezone_get(), null, $pattern);
5353

54-
if (!defined('PHP_VERSION_ID') || PHP_VERSION_ID < 50304) {
55-
$date = $date->getTimestamp();
56-
}
57-
5854
return $dateFormatter->format($date);
5955
}
6056

0 commit comments

Comments
 (0)