#28088 [Com]: strtotime() cannot convert 00 hours

2004-08-19 Thread tim at komta dot com
 ID:   28088
 Comment by:   tim at komta dot com
 Reported By:  asif at evoknow dot com
 Status:   Assigned
 Bug Type: Date/time related
 Operating System: Red Hat Linux
 PHP Version:  4.3.4
 Assigned To:  derick
 New Comment:

'00' is the designation for midnight as returned by the date()
function, as in: date('m/d/Y Hi')

For sanity's sake, it really should work.


Previous Comments:


[2004-06-29 06:45:09] asif at evoknow dot com

ransico: isn't 0045 supposed to be 2445 ?
asif: err .. I am not very sure about that.
asif: but .. the bug is still there even with 2445.
asif: did you try 2445 with the 'reproduce code'?
asif: I did, and the result is same.



[2004-06-09 03:38:43] ransico at iinet dot net dot au

isn't 0045 supposed to be 2445 ?

thats what my alarm clock says at that time anyway



[2004-04-21 11:02:01] asif at evoknow dot com

Description:

When  a string like 04/04/04 0045 is passed to strtotime(), it
returns -1. 

Reproduce code:
---
echo The following line rightly shows the correct date time\r\n;
echo date(m/d/y Hi, strtotime(04/04/04 2345));
echo \r\nBut the following line fails to show the correct date
time\r\n;
echo date(m/d/y Hi, strtotime(04/04/04 0045)).\r\n;

Expected result:

The following line rightly shows the correct date time
04/04/04 2345
But the following line fails to show the correct date time
04/04/04 0045



Actual result:
--
The following line rightly shows the correct date time
04/04/04 2345
But the following line fails to show the correct date time
01/01/70 0559






-- 
Edit this bug report at http://bugs.php.net/?id=28088edit=1


#28088 [Com]: strtotime() cannot convert 00 hours

2004-08-19 Thread tim at komta dot com
 ID:   28088
 Comment by:   tim at komta dot com
 Reported By:  asif at evoknow dot com
 Status:   Assigned
 Bug Type: Date/time related
 Operating System: Red Hat Linux
 PHP Version:  4.3.4
 Assigned To:  derick
 New Comment:

BTW, strtotime DOES work with input such as 8/20/2004 00:23, it's only
without the colon that it seems to fail.


Previous Comments:


[2004-08-20 02:46:16] tim at komta dot com

'00' is the designation for midnight as returned by the date()
function, as in: date('m/d/Y Hi')

For sanity's sake, it really should work.



[2004-06-29 06:45:09] asif at evoknow dot com

ransico: isn't 0045 supposed to be 2445 ?
asif: err .. I am not very sure about that.
asif: but .. the bug is still there even with 2445.
asif: did you try 2445 with the 'reproduce code'?
asif: I did, and the result is same.



[2004-06-09 03:38:43] ransico at iinet dot net dot au

isn't 0045 supposed to be 2445 ?

thats what my alarm clock says at that time anyway



[2004-04-21 11:02:01] asif at evoknow dot com

Description:

When  a string like 04/04/04 0045 is passed to strtotime(), it
returns -1. 

Reproduce code:
---
echo The following line rightly shows the correct date time\r\n;
echo date(m/d/y Hi, strtotime(04/04/04 2345));
echo \r\nBut the following line fails to show the correct date
time\r\n;
echo date(m/d/y Hi, strtotime(04/04/04 0045)).\r\n;

Expected result:

The following line rightly shows the correct date time
04/04/04 2345
But the following line fails to show the correct date time
04/04/04 0045



Actual result:
--
The following line rightly shows the correct date time
04/04/04 2345
But the following line fails to show the correct date time
01/01/70 0559






-- 
Edit this bug report at http://bugs.php.net/?id=28088edit=1


#28088 [Com]: strtotime() cannot convert 00 hours

2004-06-08 Thread ransico at iinet dot net dot au
 ID:   28088
 Comment by:   ransico at iinet dot net dot au
 Reported By:  asif at evoknow dot com
 Status:   Assigned
 Bug Type: Date/time related
 Operating System: Red Hat Linux
 PHP Version:  4.3.4
 Assigned To:  derick
 New Comment:

isn't 0045 supposed to be 2445 ?

thats what my alarm clock says at that time anyway


Previous Comments:


[2004-04-21 11:02:01] asif at evoknow dot com

Description:

When  a string like 04/04/04 0045 is passed to strtotime(), it
returns -1. 

Reproduce code:
---
echo The following line rightly shows the correct date time\r\n;
echo date(m/d/y Hi, strtotime(04/04/04 2345));
echo \r\nBut the following line fails to show the correct date
time\r\n;
echo date(m/d/y Hi, strtotime(04/04/04 0045)).\r\n;

Expected result:

The following line rightly shows the correct date time
04/04/04 2345
But the following line fails to show the correct date time
04/04/04 0045



Actual result:
--
The following line rightly shows the correct date time
04/04/04 2345
But the following line fails to show the correct date time
01/01/70 0559






-- 
Edit this bug report at http://bugs.php.net/?id=28088edit=1