#133 Hack fo longdate field type in 2.2.3

XOOPS_2.2
closed
nobody
None
5
2012-09-25
2005-09-15
No

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

Discussion

  • D.J.
    D.J.
    2005-09-16

    Logged In: YES
    user_id=1001493

    Fixed in CVS and waiting for review before merging to the trunk.