Negative UNIX Timestamp Problem

23 01 2006

When I used PHP’s mktime() on FreeBSD for dates prior to Jan 1, 1970, it was fine. Used the same code on RHEL 3, it gave me an incorrect value (-14462).
This is due to glibc library in some OS not allowing negative timestamps: http://bugs.php.net/bug.php?id=20048.

Read http://phplens.com/phpeverywhere/adodb_date_library for a solution to this issue.


Actions

Informations

Leave a comment

You can use these tags : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>