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

 ID:               52205
 Updated by:       sala...@php.net
 Reported by:      vladzur at gmail dot com
 Summary:          strtotime() fault dates grater than to 2010-06-12
 Status:           Bogus
 Type:             Bug
 Package:          Date/time related
 Operating System: Ubuntu 10.04
 PHP Version:      5.3.2

 New Comment:

They both work as expected for me:



php > echo phpversion();

5.3.2-1ubuntu4.2

php > var_dump(strtotime('2010/06/13'));

int(1276383600)  [note: timezone Europe/London]

php > var_dump(strtotime('13/06/2010'));

bool(false)      [note: expected result(1)]



(1) This format is not accepted, see
http://php.net/datetime.formats.date If 

possible use date_create_from_format/DateTime::createFromFormat or an 

alternative format like 13-06-2010



If you get different results, could you please verify what they are
rather than 

"doesn't work". Thanks.


Previous Comments:
------------------------------------------------------------------------
[2010-06-29 18:46:10] vladzur at gmail dot com

doesn't work this:



echo strtotime('2010/06/13)



echo strtotime('13/06/2010')

------------------------------------------------------------------------
[2010-06-29 18:31:46] ras...@php.net

php > echo strtotime('2010-06-13');

1276412400



works fine here on 5.3.2 Ubuntu.

------------------------------------------------------------------------
[2010-06-29 18:21:59] vladzur at gmail dot com

Description:
------------
strtotime returns nothing when give dates grather than 2010-06-12



echo strtotime('2010-06-13') //nothing here!!!



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



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

Reply via email to