php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15557 Date Command date("Y-m-t"); Not Correct with system time
Submitted: 2002-02-14 12:40 UTC Modified: 2002-03-15 00:00 UTC
Votes:3
Avg. Score:4.0 ± 1.4
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: ttweb at onlineok dot com Assigned:
Status: No Feedback Package: Date/time related
PHP Version: 4.1.1 OS: Slackware 8.0
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2002-02-14 12:40 UTC] ttweb at onlineok dot com
Well i noticed in my database that all the times where set to 2002-28-02 and cheaked the code. All seams okay even the system is correct. I assume that the date command has a bug in it. The text format like the day of the week is correct but when you use the numbers its all wrong.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-14 12:52 UTC] cnewbill@php.net
Well, for starters your listed date and the date format you have listed in the bug title aren't the same.

Y-m-t = Year{4} - Month - Day of Month

So let's try reworking your report.

Send the:
Expected Date Format
Actual Date Format
Code Snippet that actually makes the date inserted into your DB.

I somehow doubt this is a bug.

-Chris


 [2002-03-15 00:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC