Hi
I am now facing this problem. Using PHP to allow users to key in their DOB ( Date of Birth ) but when output on the screen, it is shown as 1 Jan 1970 for all input of year below 1970. This means that if I key in the DOB as: 23 Feb 1969, this will be shown as 1 Jan 1970. But if I key in any DOB above 1970, it will be shown correctly.
I have come across this site mentions about the date problem:
PHP native date functions use integer timestamps for computations.
Because of this, dates are restricted to the years 1901-2038 on Unix
and 1970-2038 on Windows due to integer overflow for dates beyond
those years. This library overcomes these limitations by replacing the
native function's signed integers (normally 32-bits) with PHP floating
point numbers (normally 64-bits).
http://php.weblogs.com/adodb_date_time_library
------------------------------------
I do not really know how to resolve after reading it. I have tried this on FreeBSD, it does not have this problem. Also tested with RH 7.1 it does not have this problem.
Any way to resolve this problem without switching from my current RH 8.0 to RH 7.1 ?
Thanks!
Regards
Edward Han