php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10368 add 0 (zero) in function "date"
Submitted: 2001-04-17 18:09 UTC Modified: 2001-04-29 11:25 UTC
From: roger at wzero dot com dot br Assigned:
Status: Closed Package: Date/time related
PHP Version: 4.0.4pl1 OS: linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: roger at wzero dot com dot br
New email:
PHP Version: OS:

 

 [2001-04-17 18:09 UTC] roger at wzero dot com dot 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-04-29 11:25 UTC] derick@php.net
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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC