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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bernhard at bksys dot at
New email:
PHP Version: OS:

 

 [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'.
 [2020-02-07 06:10 UTC] phpdocbot@php.net
Automatic comment on behalf of derick
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=0fb10b826e6ab4a71d0ee195a82a91ee6beb32e0
Log: - Fixed bug #44592: Update text in warning on "Others" page.
 [2020-02-07 07:30 UTC] phpdocbot@php.net
Automatic comment on behalf of derick
Revision: http://git.php.net/?p=doc/base.git;a=commit;h=bac72e46e79aef7e3a3d192adfb3b684db25d600
Log: - Fixed bug #44592: Update text in warning on "Others" page.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 12:01:27 2024 UTC