PEAK XOOPS - XoopsFormTextDateSelect in englishin japanese

XoopsFormTextDateSelect

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2004/1/12 22:16
DaBoyz  企霹始   Posts: 5
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 ?
Votes:1 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2004/1/15 5:20
GIJOE  黎扦烦菱   Posts: 4110
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.
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2004/1/15 5:54
DaBoyz  企霹始   Posts: 5
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.
Votes:0 Average:0.00
Previous post - Next post | Parent - No child | Posted on 2004/1/15 20:37
DaBoyz  企霹始   Posts: 5
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 ?
Votes:0 Average:0.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!