Skip to content

Commit

Permalink
Another fix for php 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Apr 21, 2014
1 parent 093117b commit 5cef679
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Utility/Time.php
Expand Up @@ -552,12 +552,12 @@ protected function _formatObject($date, $format, $locale) {
$pattern = $format;
}

$timezone = $date->getTimezone();
$timezone = $date->getTimezone()->getName();
$formatter = datefmt_create(
$locale,
$dateFormat,
$timeFormat,
$timezone,
$timezone === '+00:00' ? 'UTC' : $timezone,
$calendar,
$pattern
);
Expand Down

0 comments on commit 5cef679

Please sign in to comment.