Edit report at http://bugs.php.net/bug.php?id=52304&edit=1
ID: 52304 Updated by: [email protected] Reported by: milicicivan3510 at gmail dot com Summary: warning message -Status: Open +Status: Bogus Type: Bug Package: Date/time related Operating System: Windows XP PHP Version: 5.3SVN-2010-07-11 (snap) New Comment: Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. The error message is quite verbose ... Previous Comments: ------------------------------------------------------------------------ [2010-07-11 14:00:17] milicicivan3510 at gmail dot com Description: ------------ This appears: Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Paris' for '2.0/DST' instead in C:\xampp\htdocs\something.php on line 7 Distance between 2 dates is 3 days. What I must do (write) that this message doesn't appear any more? Test script: --------------- <?php $iStartDate = '2010-05-29'; $iEndDate = '2010-06-01'; printf ( 'Distance between 2 dates is %d days.', (strtotime($iEndDate) - strtotime($iStartDate)) / 86400 ); ?> Expected result: ---------------- Distance between 2 dates is 3 days. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=52304&edit=1
