#22163 [NEW]: mktime returns -3662
| From: | andrew at strawberry-world dot com | Date: | Tue, 11 Feb 2003 10:51:50 +0000 |
| Subject: | #22163 [NEW]: mktime returns -3662 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-32750@lists.php.net to get a copy of this message | ||
From: andrew@strawberry-world.com
Operating system: MacOS X 10.2
PHP version: 4.3.0
PHP Bug Type: Date/time related
Bug description: mktime returns -3662
Hello
the function mktime seems to return an incorrect value for
certain dates.
Example:
$the_day=mktime(0,0,0,03,30,03);
returns the value -3662
I have also tried different variations:
$the_day=mktime(0,0,0,3,30,03);
$the_day=mktime(0,0,0,03,30,2003);
But all yield the same result.
If I use:
$the_day=mktime(0,0,0,03,29,03);
I get a UNIX timestamp back as expected.
When using the mktime() function I normally also specify
the daylight savings time value of 0, but this also makes
no difference, whether it is 0 or 1.
I am using PHP as built by www.entropy.ch
--
Edit bug report at http://bugs.php.net/?id=22163&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22163&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22163&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22163&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22163&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22163&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22163&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22163&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22163&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22163&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22163&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22163&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22163&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22163&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22163&r=gnused