php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35189 Date Function Bug
Submitted: 2005-11-11 07:44 UTC Modified: 2005-11-12 10:14 UTC
Votes:2
Avg. Score:4.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:2 (100.0%)
From: php at splitstreamdesign dot com Assigned: derick (profile)
Status: Wont fix Package: Date/time related
PHP Version: 5.0.5 OS: Windows 2000/XP
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: php at splitstreamdesign dot com
New email:
PHP Version: OS:

 

 [2005-11-11 07:44 UTC] php at splitstreamdesign dot com
Description:
------------
The documentation for the date() function states that the 'T' parameter for the format string prints the timezone abbreviation: "Examples: EST, MDT ...". Both PHP 5.0.4 and 5.0.5 replace 'T' with the full string "Eastern Standard Time" on both Windows 2000 & Windows XP servers.

Reproduce code:
---------------
<? echo date("D, d M Y H:i:s T"); ?>

Expected result:
----------------
Fri, 11 Nov 2005 01:37:23 EST

Actual result:
--------------
Fri, 11 Nov 2005 01:37:23 Eastern Standard Time

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-11 15:44 UTC] tony2001@php.net
Derick, is this a bug or just another Window$ "feature"?
 [2005-11-11 19:48 UTC] derick@php.net
This is a "feature", which is addressed in PHP 5.1 and higher. It will not be changed from older versions.
 [2005-11-11 23:11 UTC] php at splitstreamdesign dot com
So will this be fixed in 5.1, or be the same? Any estimate on when 5.1 will be released?
 [2005-11-12 10:14 UTC] derick@php.net
It will show "EST" in 5.1, and it should be released somewhere next week.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 16:01:27 2024 UTC