Bug #10368 Updated: add 0 (zero) in function "date"
| From: | derick@php.net | Date: | Sun, 29 Apr 2001 15:25:20 +0000 |
| Subject: | Bug #10368 Updated: add 0 (zero) in function "date" | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-52918@lists.php.net to get a copy of this message | ||
ID: 10368
Updated by: derick
Reported By: roger@wzero.com.br
Status: Open
Bug Type: Date/time related
PHP Version: 4.0.4pl1
Assigned To:
Comments:
I could not reproduce this with PHP-4.0.5RC6. What data is in your $data array? And what does the
dia2s() function do?
Please reopen this report with a script that we can try to see if it's a bug, or just a problem
with your PHP code.
Derick
Previous Comments:
---------------------------------------------------------------------------
[2001-04-17 18:09:23] roger@wzero.com.br
$ds[1]=dia2s(date( "D", mktime(0,0,0,$data["mon"],$data["mday"]
+0,$data["year"])));
Adding +0 to a date returns the next day. it should return today!
Adding +1 or -1 works fine!
thanks,
Roger
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10368&edit=2