Rename TimeZoneTransformer into TimezoneTransformer

This commit is contained in:
Thierry Thuon 2017-03-05 12:20:52 +01:00 committed by Fabien Potencier
parent 27dbfda18e
commit dba163950b
3 changed files with 3 additions and 3 deletions

View File

@ -67,7 +67,7 @@ class FullTransformer
'k' => new Hour2401Transformer(),
'm' => new MinuteTransformer(),
's' => new SecondTransformer(),
'z' => new TimeZoneTransformer(),
'z' => new TimezoneTransformer(),
);
}

View File

@ -20,7 +20,7 @@ use Symfony\Component\Intl\Exception\NotImplementedException;
*
* @internal
*/
class TimeZoneTransformer extends Transformer
class TimezoneTransformer extends Transformer
{
/**
* {@inheritdoc}

View File

@ -541,7 +541,7 @@ class IntlDateFormatter
// Get an Etc/GMT time zone that is accepted for \DateTimeZone
if ('GMT' !== $timeZoneId && 0 === strpos($timeZoneId, 'GMT')) {
try {
$timeZoneId = DateFormat\TimeZoneTransformer::getEtcTimeZoneId($timeZoneId);
$timeZoneId = DateFormat\TimezoneTransformer::getEtcTimeZoneId($timeZoneId);
} catch (\InvalidArgumentException $e) {
// Does nothing, will fallback to UTC
}