Skip to content

Commit ca9db00

Browse files
committed
Timezone "name" should be renamed to timezone "ID"
1 parent f8f6cee commit ca9db00

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/intl.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ The ``Timezones`` class provides access to the name and values of all timezones:
410410
\Locale::setDefault('en');
411411

412412
$timezones = Timezones::getNames();
413-
// ('timezoneName' => 'timezoneValue')
413+
// ('timezoneID' => 'timezoneValue')
414414
// => ['America/Eirunepe' => 'Acre Time (Eirunepe)', 'America/Rio_Branco' => 'Acre Time (Rio Branco)', ...]
415415

416416
$timezone = Timezones::getName('Africa/Nairobi');
@@ -425,9 +425,9 @@ which defaults to the current default locale::
425425
$timezone = Timezones::getName('Africa/Nairobi', 'de');
426426
// => 'Ostafrikanische Zeit (Nairobi)'
427427

428-
You can also check if a given timezone name is valid::
428+
You can also check if a given timezone ID is valid::
429429

430-
$isValidTimezone = Timezones::exists($timezoneName);
430+
$isValidTimezone = Timezones::exists($timezoneId);
431431

432432
.. versionadded:: 4.3
433433

0 commit comments

Comments
 (0)