Bug #1244: mktime is returning incorrect integer values for certain months of 1999

From: Date: Thu, 18 Mar 1999 02:34:55 +0000
Subject: Bug #1244: mktime is returning incorrect integer values for certain months of 1999
Groups: php.dev 
Request: Send a blank email to php-dev+get-4674@lists.php.net to get a copy of this message
From: jhedy@racingschools.com Operating system: FreeBSD 2.2.7 PHP version: 3.0.6 PHP Bug Type: Misbehaving function Bug description: mktime is returning incorrect integer values for certain months of 1999 <? $coursedatetime = MkTime(0,0,0,03,01,1999); print "March 1, 1999 UNIX datetime = $coursedatetime <br>"; $coursedatetime = MkTime(0,0,0,09,01,1999); print "September 1, 1999 unix datetime = $coursedatetime <br>"; $coursedatetime = MkTime(0,0,0,12,01,1999); print "December 1, 1999 UNIX datetime = $coursedatetime <br>"; ?> In my application I'm receiving back the following values: March 1, 1999 UNIX datetime = 920264400 September 1, 1999 UNIX datetime = 912488400 December 1, 1999 UNIX datetime = 944024400 The problem is that the September value is previous to even the March value. This is causing all kinds of grief in my application as I employ logic to only display course enrollment dates for those courses with start dates greater than or equal to the current day. My August and September courses are falling victim to this problem. Thanks. -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#4674) next »