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:
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

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

Who's Online

345 user(s) are online (206 user(s) are browsing Support Forums)


Members: 0


Guests: 345


more...

Donat-O-Meter

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

Latest GitHub Commits