ID: 28594
User updated by: tavancini at hotmail dot com
Reported By: tavancini at hotmail dot com
Status: Bogus
Bug Type: Date/time related
Operating System: Windows 2000 Server
PHP Version: 4.3.6
New Comment:
so, this is not a bug??
if it is not, how can i make my code to function proberly?
i only need to calculate the months...
thanks
Previous Comments:
------------------------------------------------------------------------
[2004-06-02 17:57:25] [EMAIL PROTECTED]
Yes... Yes,
-11 month = 06-31-2003 => 07-01-2003 => 07-2003
-10 month = 07-31-2003 => 07-2003
got it?
------------------------------------------------------------------------
[2004-06-02 17:08:07] tavancini at hotmail dot com
No... No,
-11 month = 07-2003
-10 month = 07-2003
got it?
------------------------------------------------------------------------
[2004-06-02 11:41:12] [EMAIL PROTECTED]
Woops, really setting Bogus.
------------------------------------------------------------------------
[2004-06-02 11:39:58] [EMAIL PROTECTED]
H'mm, let's see, on 31-May:
-11months = 31-June, which doesn't exist so is treated as 01-July
-10months = 31-July (fine)
-9 months = 31-August (fine)
-8 months = 31-September (doesn't exist, treat as 01-Oct)
-7 months = 31-October (fine)
-6 months = 31-November (doesn't exist, treat as 01-Dec)
etc.
Not a PHP bug.
------------------------------------------------------------------------
[2004-06-01 18:30:18] tavancini at hotmail dot com
Hi,
The script is the same as I posted.
Only a comment, when i change the server date to May 30, or, May 31..
the script goes crazy and reproduce the error as i mentioned.
BUT, today, June 1st, the script goes normally as i programmed.
Strange thing...
for information, i am using...
English Windows 2000 Server - Service Pack 3
Locale "Portugues (Brazil)
Short Date Format "d/M/yyyy"
(GMT -03:00) - Brasilia
Thanks.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/28594
--
Edit this bug report at http://bugs.php.net/?id=28594&edit=1