note 125127 added to datetimezone.listidentifiers
| From: | PHPGuru@php.net | Date: | Thu, 18 Jun 2020 21:17:07 +0000 |
| Subject: | note 125127 added to datetimezone.listidentifiers | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-214778@lists.php.net to get a copy of this message | ||
In tests that I have done, not all time zones are returned by this function. For example the
following aliases Asia/Katmandu and Asia/Calcutta are not returned, but these time zones are
supported in tests that I have done such as the following:
<?php
echo date_default_timezone_set('Asia/Calcutta');
?>
result:
Fri, 19 Jun 2020 03:26:52 +0530
UTC+05:30 is the correct time zone for Calcutta.
Asia/Katmandu and Asia/Calcutta are aliases for Asia/Kathmandu and Asia/Kolkata respectively (which
can be found in the list)
Hopefully this helps some people because without these time zones appearing in the list one might
not know that they are supported or even exist.
----
Server IP: 45.112.84.4
Probable Submitter: 103.51.166.36 (proxied: 2601:1c0:c804:34d0:f892:6554:7806:3306)
----
Manual Page -- http://php.net/manual/en/datetimezone.listidentifiers.php
Edit -- https://master.php.net/note/edit/125127
Del: integrated -- https://master.php.net/note/delete/125127/integrated
Del: useless -- https://master.php.net/note/delete/125127/useless
Del: bad code -- https://master.php.net/note/delete/125127/bad+code
Del: spam -- https://master.php.net/note/delete/125127/spam
Del: non-english -- https://master.php.net/note/delete/125127/non-english
Del: in docs -- https://master.php.net/note/delete/125127/in+docs
Del: other reasons-- https://master.php.net/note/delete/125127
Reject -- https://master.php.net/note/reject/125127
Search -- https://master.php.net/manage/user-notes.php