1
miscellone
Longdate field type
  • 2005/9/15 13:15

  • miscellone

  • Just popping in

  • Posts: 9

  • Since: 2004/9/22


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:
le="color: #000000"><?php case XOBJ_DTYPE_STIME: case XOBJ_DTYPE_MTIME: case XOBJ_DTYPE_LTIME: $cleanv = !is_string($cleanv) ? intval($cleanv) : strtotime($cleanv); break;


New code:
le="color: #000000"><?php 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

2
ackbarr
Re: Longdate field type

thanks for the patch. Can you please add this to the SF.net patch tracker to make sure that the core developers see it?
Site Hosting - PlanetXoops

3
miscellone
Re: Longdate field type
  • 2005/9/15 18:38

  • miscellone

  • Just popping in

  • Posts: 9

  • Since: 2004/9/22


Ok

Login

Donat-O-Meter

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