1
Hi,
In XOOPS 2.2.3 the LONGDATE type fields don't work corectly.
To make them work I made the following hack in kernel/object.php near line 510
Old code:
case XOBJ_DTYPE_STIME:
case XOBJ_DTYPE_MTIME:
case XOBJ_DTYPE_LTIME:
$cleanv = !is_string($cleanv) ? intval($cleanv) : strtotime($cleanv);
break;
New code:
case XOBJ_DTYPE_STIME:
case XOBJ_DTYPE_LTIME:
$cleanv = !is_string($cleanv) ? intval($cleanv) : strtotime($cleanv);
break;
case XOBJ_DTYPE_MTIME:
$cleanv = str_replace ("/", "-", $cleanv);
break;
Misha