1
hello,
I have a problem with polls time format.
In my language file I changed the value of _MD_POLL_FORMAT from aaaa-mm-dd to dd-mm-aaaa .
I changed those lines too (formatTimestamp only from Y-m-d to d-m-Y)
$date = formatTimestamp($poll->getVar("end_time"), "d-m-Y H:i:s");
$expire_text = new XoopsFormText(_MD_POLL_EXPIRATION."
"._MD_POLL_FORMAT."
".sprintf(_MD_POLL_CURRENTTIME, formatTimestamp(time(), "d-m-Y H:i:s"))."", "end_time", 20, 19, $date);
$expire_text = new XoopsFormText(_MD_POLL_EXPIRATION."
"._MD_POLL_FORMAT."
".sprintf(_MD_POLL_CURRENTTIME, formatTimestamp(time(), "d-m-Y H:i:s"))."", "end_time", 20, 19, formatTimestamp(time()+604800, "d-m-Y H:i:s"));
$currenttime = formatTimestamp(time(), "d-m-Y H:i:s");
$endtime = formatTimestamp(time()+604800, "d-m-Y H:i:s");
Everything is ok now except the poll time expiration which doesn't respect the "post submited time".
eg : 10-06-2005 becomes 26.11.15
how can I fix this ?
thx