Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit dc0eba7

Browse filesBrowse files
committed
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 ------- dba1639 Rename TimeZoneTransformer into TimezoneTransformer
2 parents 27dbfda + dba1639 commit dc0eba7
Copy full SHA for dc0eba7

File tree

3 files changed

+3
-3
lines changed
Filter options

3 files changed

+3
-3
lines changed

‎src/Symfony/Component/Intl/DateFormatter/DateFormat/FullTransformer.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Intl/DateFormatter/DateFormat/FullTransformer.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function __construct($pattern, $timezone)
6767
'k' => new Hour2401Transformer(),
6868
'm' => new MinuteTransformer(),
6969
's' => new SecondTransformer(),
70-
'z' => new TimeZoneTransformer(),
70+
'z' => new TimezoneTransformer(),
7171
);
7272
}
7373

‎src/Symfony/Component/Intl/DateFormatter/DateFormat/TimeZoneTransformer.php renamed to ‎src/Symfony/Component/Intl/DateFormatter/DateFormat/TimezoneTransformer.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Intl/DateFormatter/DateFormat/TimezoneTransformer.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*
2121
* @internal
2222
*/
23-
class TimeZoneTransformer extends Transformer
23+
class TimezoneTransformer extends Transformer
2424
{
2525
/**
2626
* {@inheritdoc}

‎src/Symfony/Component/Intl/DateFormatter/IntlDateFormatter.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Intl/DateFormatter/IntlDateFormatter.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ public function setTimeZoneId($timeZoneId)
541541
// Get an Etc/GMT time zone that is accepted for \DateTimeZone
542542
if ('GMT' !== $timeZoneId && 0 === strpos($timeZoneId, 'GMT')) {
543543
try {
544-
$timeZoneId = DateFormat\TimeZoneTransformer::getEtcTimeZoneId($timeZoneId);
544+
$timeZoneId = DateFormat\TimezoneTransformer::getEtcTimeZoneId($timeZoneId);
545545
} catch (\InvalidArgumentException $e) {
546546
// Does nothing, will fallback to UTC
547547
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.