1
DaBoyz
XoopsFormTextDateSelect
  • 2004/1/12 13:06

  • DaBoyz

  • Just popping in

  • Posts: 79

  • Since: 2002/8/8 1


For a module i'm developping, I need to set date from 1900 to 20xx (for birthday) ... I used the function to display the calendar that permit to choose the date ...

I modify the line 38 in include/calendarjs.php :
cal.setRange(20002015);

to
cal.setRange(19002015);


It's working but the function uses TIMESTAMP format to store in the database but I use DATETIME (not limited until 1970), do you know how to modify the function to store the data with this DATETIME format and also retrieve date for modification ?

For those who speak french, I launched also a topic on the french site : here ...

2
DaBoyz
Re: XoopsFormTextDateSelect
  • 2004/1/12 18:23

  • DaBoyz

  • Just popping in

  • Posts: 79

  • Since: 2002/8/8 1


Up ... to avoid the abyss ...

3
DaBoyz
Re: XoopsFormTextDateSelect
  • 2004/1/12 22:57

  • DaBoyz

  • Just popping in

  • Posts: 79

  • Since: 2002/8/8 1


Is that to say that nobody need to use date before 1970 ???

PS : Excuse my hurry but I would like to have an answer ...

4
DaBoyz
Re: XoopsFormTextDateSelect
  • 2004/1/13 11:39

  • DaBoyz

  • Just popping in

  • Posts: 79

  • Since: 2002/8/8 1


Up ...

5
DaBoyz
Re: XoopsFormTextDateSelect
  • 2004/1/14 9:22

  • DaBoyz

  • Just popping in

  • Posts: 79

  • Since: 2002/8/8 1


Up ???

I could add that on the french topic, some persons (like me) would like to understand the choice of TimeStamp => limit from 1970 ? Or if a solution exists ...

6
DaBoyz
Re: XoopsFormTextDateSelect
  • 2004/1/14 11:49

  • DaBoyz

  • Just popping in

  • Posts: 79

  • Since: 2002/8/8 1


I did some tests and I found some answers (some modifications where made to the code) :

- I changed the type of field to DATE (for birthday, it's enough)
- If I enter or choose a value out of Unix TimeStamp (1945-12-12), this value is stored in the database ...
- But stil have the same problem when editing the value ...

EDIT => I found and changed to another method that works without the limit imposed by Unix TimeStamp ... Fall down little post !!! You're useless now and doesn't interest anybody at all

Login

Who's Online

208 user(s) are online (143 user(s) are browsing Support Forums)


Members: 0


Guests: 208


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits