Posted on: 2012/2/22 20:18
Xoopd 2.5.5 - Gestion des dates
I am testing 2.5.5 and of course i look at the date in french.
No problem but it is not french format
but with (french format)
The date is in bad format.
I think that the probleme is not resolved because, it is the module that must transform the date the good format, or it's a good way.
I think that the real solution is that the module send a timestamp unix to the class xoopsformcalendar, the calendar show date as langue and it send a timstamp to the module wiche save it in mysql.
(timestamp or universal date)
In the good way i think the processus mus be like this:
Mysql --> format date or datetime (2012-02-10 21:09:08)
module send to calendar ---> format date or datetime (2012-02-10 21:09:08)
calendar show date in format of land (french 10-02-2012 jj-mm-YYYY)
Change the date ---> (exemple : 25-01-2012 21:09:08)
When form is validate
calendar must send to the module --->Mysql format (2012-01-25 21:09:08)
module save as mysql format (2012-01-25 21:09:08) independant of language
May be, to keep compatibility, the best is to pass by a new calendar in this way.
I hpope that i am explicit.
For the rest i have not again notice any problème, but i continue my tests