[Vtigercrm-developers] vt61 - ModTracker Summary Widget: 44 Years!

Matteo Baranzoni info at greenbitweb.com
Thu Oct 9 16:40:28 GMT 2014


Same problem here.
function formatDateDiffInStrings in modules/Vtiger/helpers/Util.php does
not work well, actually i solved with custom RecentiActivities.tpl in
/layout/vlayout/module/MODULENAME thas use formatDateTimeIntoDayString:[image:
Immagine in linea 1]


2014-10-09 15:33 GMT+02:00 Alan Lord <alanslists at gmail.com>:

> I remember someone else seeing this before... What the problem - why does
> it say 44 years ago, when it was just a couple of seconds?
>
> Cheers
>
> Al
>
> PS: ModTracker widget registered on my Module using the following
> bootstrap code:
>
>  if ($module != false){
>>         $url = "javascript:ModTrackerCommon.showhistory('$RECORD$')";
>>         $module->deleteLink('DETAILVIEWBASIC', 'View History', $url);
>>         $module->addLink('DETAILVIEWBASIC', 'View History', $url);
>>
>>         // Insert tabid - will fail if in already as tabid is a primary
>> key
>>         $query = "INSERT INTO vtiger_modtracker_tabs(tabid,visible)
>> VALUES(?,1)";
>>         $adb->pquery($query, array($module->id));
>> }
>>
>
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20141009/81f8b3a6/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Selezione_001.png
Type: image/png
Size: 6296 bytes
Desc: not available
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20141009/81f8b3a6/attachment.png>


More information about the vtigercrm-developers mailing list