Hi!
I'd be glad to find an answer to this problem i'm working on with Maxime.
I give some additionals details in order to understand the problem:
Any original Sugar date field is correctly displayed in dd/mm/yyyy format, although the value in database is formatted in yyyy-mm-dd.
In contrary, our custom field date_c is displayed directly in database format.
I guess that there is something to do before display to get the same result for our custom field.
Our vardefs file looks like that:
PHP Code:
$dictionary["Module"]["fields"]["date_c"] = array (
'required' => '0',
'source' => 'custom_fields',
'name' => 'date_c',
'vname' => 'LBL_DATE',
'type' => 'date',
'massupdate' => '0',
'default' => NULL,
'comments' => '',
'help' => '',
'importable' => 'true',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => '0',
'audited' => 0,
'reportable' => 0,
'id' => 'Moduledate_c',
'custom_module' => 'Module',
);
And e.g. the field birthdate in Contacts:
PHP Code:
'birthdate' =>
array (
'name' => 'birthdate',
'vname' => 'LBL_BIRTHDATE',
'massupdate' => false,
'type' => 'date',
'comment' => 'The birthdate of the contact'
),
I suppose that custom date fields are processed as String or something like that, but i wasn't able to found where...
If anybody could help, thanks by advance!
Bookmarks