ID: 17335 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus Bug Type: Date/time related Operating System: Linux PHP Version: 4.2.1 New Comment:
localtime() mimics the C behaviour which is zero-based while mktime() is for humans and has no C counterpart, so it uses the more convenient 1-based stuff just use getdate() instad of localtime() and you'll be fine Previous Comments: ------------------------------------------------------------------------ [2002-05-21 10:28:04] [EMAIL PROTECTED] In the array returned from localtime(), tm_mon starts from 0. However, the month field in mktime() starts from 1. Is there the way it is in C, or is this a PHP implementation bug? Thanks, Hans ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17335&edit=1