ID: 40645 Updated by: [EMAIL PROTECTED] Reported By: simone at ivg dot it -Status: Open +Status: Feedback Bug Type: Date/time related Operating System: Linux 2.6 PHP Version: 4.4.5 New Comment:
This works fine for me with PHP 4.4.6RC2-dev: <?php echo strtotime("1951-12-22"), "\n"; ?> -568947600 Previous Comments: ------------------------------------------------------------------------ [2007-02-26 17:55:41] simone at ivg dot it Description: ------------ The strtotime() function returns -1 if the date is prior to 1970-01-01. Instead, date function works properly with negative timestamps. Reproduce code: --------------- strtotime("1951-12-22") returns -1 date("d/m/Y",-578944001) returns 28/08/1951 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=40645&edit=1