1
fdj
[CBB 1.13] Polls
  • 2005/6/3 8:47

  • fdj

  • Just popping in

  • Posts: 51

  • Since: 2002/9/19


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."<br /><small>"._MD_POLL_FORMAT."<br />".sprintf(_MD_POLL_CURRENTTIMEformatTimestamp(time(), "d-m-Y H:i:s"))."</small>""end_time"2019$date);

$expire_text = new XoopsFormText(_MD_POLL_EXPIRATION."<br /><small>"._MD_POLL_FORMAT."<br />".sprintf(_MD_POLL_CURRENTTIMEformatTimestamp(time(), "d-m-Y H:i:s"))."</small>""end_time"2019formatTimestamp(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

Login

Who's Online

218 user(s) are online (181 user(s) are browsing Support Forums)


Members: 0


Guests: 218


more...

Donat-O-Meter

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

Latest GitHub Commits