Bug #17335: mktime() Off by One?
| From: | hz11 at nyu dot edu | Date: | Tue, 21 May 2002 14:28:05 +0000 |
| Subject: | Bug #17335: mktime() Off by One? | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-8092@lists.php.net to get a copy of this message | ||
From: hz11@nyu.edu
Operating system: Linux
PHP version: 4.2.1
PHP Bug Type: Date/time related
Bug description: mktime() Off by One?
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 bug report at http://bugs.php.net/?id=17335&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17335&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17335&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17335&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17335&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17335&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17335&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17335&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17335&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17335&r=globals