Rename TimeZoneTransformer into TimezoneTransformer
This commit is contained in:
parent
27dbfda18e
commit
dba163950b
@ -67,7 +67,7 @@ class FullTransformer
|
||||
'k' => new Hour2401Transformer(),
|
||||
'm' => new MinuteTransformer(),
|
||||
's' => new SecondTransformer(),
|
||||
'z' => new TimeZoneTransformer(),
|
||||
'z' => new TimezoneTransformer(),
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -20,7 +20,7 @@ use Symfony\Component\Intl\Exception\NotImplementedException;
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class TimeZoneTransformer extends Transformer
|
||||
class TimezoneTransformer extends Transformer
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user