minor #21875 Rename TimeZoneTransformer into TimezoneTransformer (lepiaf)
This PR was submitted for the 3.2 branch but it was merged into the 3.3-dev branch instead (closes #21875).
Discussion
----------
Rename TimeZoneTransformer into TimezoneTransformer
| Q | A
| ------------- | ---
| Branch? | 3.2
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #11028
| License | MIT
| Doc PR | no
#
Commits
-------
dba163950b
Rename TimeZoneTransformer into TimezoneTransformer
This commit is contained in:
commit
dc0eba77f6
@ -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