ID: 45358 Comment by: smlerman at gmail dot com Reported By: viorel dot irimia at gmail dot com Status: Open Bug Type: Date/time related Operating System: Debian GNU/Linux 4.0 PHP Version: 5.2.6 New Comment:
'1214431948' is being understood as 'HHiissYYYY' var_dump(date('Y-m-d H:i:s', strtotime('1214431947'))); will show you what's happening. Previous Comments: ------------------------------------------------------------------------ [2008-06-25 19:50:44] viorel dot irimia at gmail dot com Description: ------------ It seems that var_dump(strtotime('1214431948')); is returning int(-678980717) instead timestamp / false / -1 I belive is an overflow somewhere... Version: PHP Version 5.2.0-8+etch11 Build Date May 10 2008 10:31:53 Linux 2.6.18-6-686, debian 4.0 Reproduce code: --------------- var_dump(strtotime('1214431948')); var_dump(strtotime('1214431946')); Expected result: ---------------- false | -1 false | -1 Actual result: -------------- int(-678980717) int(-742139117) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45358&edit=1