ID:               34087
 Updated by:       [EMAIL PROTECTED]
 Reported By:      osmium at 163 dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Date/time related
 Operating System: Windows Server 2003
 PHP Version:      5.1.0b3
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

The manual states that strtotime() parses a date/time string according
to the GNU Date Input Formats syntax. The format "Y/m/d" is not a
supported GNU date input format (see the link below).

http://www.php.net/strtotime
http://www.gnu.org/software/tar/manual/html_chapter/tar_7.html


Previous Comments:
------------------------------------------------------------------------

[2005-08-12 03:08:37] osmium at 163 dot com

Description:
------------
I got nothing on the first line but a number "1123804800" on the second
line. Maybe format "Y/m/d" is not supported by strtotime().

However, I got two numbers in v5.0.3

Reproduce code:
---------------
<?php
echo "Y/m/d: ", strtotime("2005/8/12"), "<br>";
echo "Y-m-d: ", strtotime("2005-8-12");
?>

Expected result:
----------------
Y/m/d: 1123804800
Y-m-d: 1123804800

Actual result:
--------------
Y/m/d: 
Y-m-d: 1123804800


------------------------------------------------------------------------


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

Reply via email to