Skip to content

Commit

Permalink
Change IntlTimeZone to DateTimeZone
Browse files Browse the repository at this point in the history
  • Loading branch information
aweelex committed Jun 6, 2019
1 parent 2ae0580 commit a6025ab
Showing 1 changed file with 2 additions and 5 deletions.
Expand Up @@ -162,11 +162,8 @@ protected function getIntlDateFormatter($ignoreTimezone = false)
{
$dateFormat = $this->dateFormat;
$timeFormat = $this->timeFormat;
$timezone = $ignoreTimezone ? 'UTC' : $this->outputTimezone;
if (class_exists('IntlTimeZone', false)) {
// see https://bugs.php.net/bug.php?id=66323
$timezone = \IntlTimeZone::createTimeZone($timezone);
}
$timezone = new \DateTimeZone($ignoreTimezone ? 'UTC' : $this->outputTimezone);

$calendar = $this->calendar;
$pattern = $this->pattern;

Expand Down

0 comments on commit a6025ab

Please sign in to comment.