php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #44592 usage of deprecated timezone UTC suggested
Submitted: 2008-04-01 13:03 UTC Modified: 2008-04-01 13:16 UTC
From: bernhard at bksys dot at Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: any
Private report: No CVE-ID: None
 [2008-04-01 13:03 UTC] bernhard at bksys dot at
Description:
------------
http://www.php.net/manual/en/timezones.others.php , which lists the timezone UTC says: "Note:  Please do not use any of the timezones listed here, they only exist for backward compatible reasons."

OTOH http://www.php.net/manual/en/function.date-default-timezone-set.php says:  "timezone_identifier The timezone identifier, like UTC or Europe/Lisbon."

Also, http://www.php.net/manual/en/function.date-default-timezone-get.php says: "If none of the above options succeeds, return UTC".

I suggest to substitute UTC for something that does not exist for backward compatible reasons only.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-04-01 13:11 UTC] derick@php.net
UTC is not deprecated.. the message on that page is not 100% correct. 
 [2008-04-01 13:16 UTC] derick@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2010-09-18 20:48 UTC] i at walkinraven dot name
List of Supported Timezones -> Others, there are words:

----------------------------
Warning
Please do not use any of the timezones listed here (besides UTC), they only exist for backward compatible reasons.

URI: http://www.php.net/manual/en/timezones.others.php
----------------------------

I think the 'besides UTC' should be replaced by 'except UTC'.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon May 27 07:01:26 2019 UTC