For a module i'm developping, I need to set date from 1900 to 20xx (for birthday) ... I used the same function like you in the piCal module (XoopsFormTextDateSelect) to display the calendar that permit to choose the date ...
I modify the line 38 in include/calendarjs.php :
cal.setRange(2000, 2015);
to
cal.setRange(1900, 2015);
It's working but the function uses TIMESTAMP format to store in the database but I use DATETIME (not limited from 1970), do you know how to modify the function to store the data with this format and also retrieve date for modification ?
hi DaBoyz.
It's easy to TIMESTAMP to DATETIME.
date('Y-m-d',$unixtimestamp);
If you mean DATETIME to TIMESTAMP,
use UNIX_TIMESTAMP() function of MySQL.
But Windows can't support the timestamp between 1900-1969.
Quote:
But Windows can't support the timestamp between 1900-1969.
That's the real problem so I change for another solution (
french explanation) ...
Thanks for your anwser.
It's me again ... toc-toc-toc ...
I just saw the release of the new version 0.60 beta for piCal with this in the change log :
Quote:
operation with date of year >= 1970 or >= 2038 added
First, I suppose that
>= 1970 is in fact
<= 1970 ... ?
Does this mean that you resolved the problem with the Unix date limit ?