Showing task date and time in the activity and history subpanels

Hello developers,

i noticed that the calls and meetings in the Activity and History subpanels are showing Date and time,

but the Tasks are shown without the time (only date).

how can i display the time of the Tasks in the activity and history subpanels?

task.png

I'm familiar with SugarCRM coding.

searched inside Modules/Tasks/metadata/subpanels/ForActivities.php but couldn't find anything. not even in the vardefs file...

Using CE 6.5.13 version.

  • Hi, Doesn't anyone know how to add the time to the 'start_date' of tasks in the activity subpanel??

    Its suppose to be basic coding because the problem occurs in the basic install of sugarcrm CE....

    Other 'start_date' , like calls and meetings, does show it...

    we cannot use the task module otherwise, we really need it...

    anyone???

  • My initial guess is that it's using the wrong data type field.

    Should be Data Type: Datetime but yours could be setup just as Date

  • Hello Asaf,

    I debugged and found that it can be achieved but it's an un-upgradesafe change. In Task.php there is a function formatStartAndDueDates

    Change

    (A) $today = $timedate->nowDbDate(); TO $today = $timedate->nowDb();

    (B) $task_fields['DATE_DUE'] = $timedate->to_display_date($dbtime); TO $task_fields['DATE_DUE'] = $timedate->to_display_date_time($dbtime);

    (C) $dd = $timedate->to_db_date($date_due, false); TO $dd = $timedate->to_db($date_due, false);

    Hope this will help.

    Thanks & Regards,

    Team Urdhva Tech.

    http://www.urdhva-tech.com

  • Wow! You really have an in-depth understanding in sugarcrm coding.

    i have been coding sugarcrm for 5 years and would never think of such solution.

    Thank you so much!!

  • Thank you.

    You are welcome!

    Thanks & Regards,

    Team Urdhva Tech

    Web : http://www.urdhva-tech.com