Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » How To » Date formats in PDF
Re: Date formats in PDF [message #1608 is a reply to message #1607] Fri, 05 September 2008 12:23 Go to previous messageGo to previous message
AJM is currently offline  AJM
Messages: 2361
Registered: April 2006
Location: Surrey, UK
Senior Member
The formatData() method can only format dates for those fields in $this->fieldspec which are actually identified as dates. If you are bringing in fields from other tables via a JOIN then those fields will not have any entries in $this->fieldspec, therefore there is no information on how they should be formatted.

The solution is simple - insert code into the _cm_changeConfig() method to temporarily add the fields you want formatted using code similar to the following:
    $this->fieldspec['date_field'] = array('type' => 'date');


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Insert a dialogue screen
Next Topic: Change how radicore displays dates
Goto Forum:
  


Current Time: Fri Sep 13 00:14:30 EDT 2024

Total time taken to generate the page: 0.01234 seconds