1
ladios
BUG: class XoopsFormDateTime
  • 2004/6/14 1:40

  • ladios

  • Just popping in

  • Posts: 7

  • Since: 2003/10/13


Problem:
the date field is not displayed correctly: instead of the
usual 'yyyy-mm-dd', it displays the int value e.g. '1232424123'

Fix:
in the file /class/xoopsform/formdatetime.php
locate-
$this->addElement(new XoopsFormTextDateSelect('', $name.'[date]', $size, $value));
and change it to-
$this->addElement(new XoopsFormTextDateSelect('', $name.'[date]', $size, date('Y-m-d', $value)));

Login

Who's Online

242 user(s) are online (148 user(s) are browsing Support Forums)


Members: 0


Guests: 242


more...

Donat-O-Meter

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

Latest GitHub Commits