problem with new mktime feature
| From: | Marcos Thiago M. Fabis | Date: | Tue, 17 Aug 2004 15:04:14 +0000 |
| Subject: | problem with new mktime feature | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-194042@lists.php.net to get a copy of this message | ||
Hi everyone;
I´m having a trouble with mktime. It is not generating negative values since the OS was updated
to "Linux version 2.6.7 (gcc version 3.2.3)".
I belive php uses mktime from glibc, and when this library was changed, mktime with this new
"stupid feature" stoped generate values that represent dates lower than Dec-31-1969.
All my systems that store dates are using mktime, so the birthday fields are not working under
1969.
I´m using PHP 4.3.8, and always upgrading !
How can i fix that?
Example:
<?
echo date ("M-d-Y", mktime (0,0,0,12,32,1997));
echo "<br>";
echo date ("M-d-Y", mktime (0,0,0,1,1,1968));
?>
The result is:
Jan-01-1998
Dec-31-1969
Thnx in advance, and sorry my poor english!
[s]
Mt