diff --git a/plugins/addons/tasks/class_tasksColumn.inc b/plugins/addons/tasks/class_tasksColumn.inc index abd034329d79a9d607314ace702590dd29a013a3..d3009a144a3699c9a87d03fe6ef5f03da1335f41 100644 --- a/plugins/addons/tasks/class_tasksColumn.inc +++ b/plugins/addons/tasks/class_tasksColumn.inc @@ -37,6 +37,12 @@ class TasksColumn extends Column case 'fdTasksMailObject': return "Mail Object"; + case 'fdTasksScheduleDate': + // Z is added to value to match ldap generaliseztime + $datetime = (new LdapGeneralizedTime)->fromString($value.'Z'); + $result = $datetime->format('Y-m-d H:i:s'); + return $result; + default: return parent::renderSingleValue($entry, $value); } diff --git a/plugins/addons/tasks/class_tasksManagement.inc b/plugins/addons/tasks/class_tasksManagement.inc index 779ae1cae1a4fe337874ac580e8e95d26267837b..b59b90fcfa9917b90d7655baa218a8144dacfff4 100644 --- a/plugins/addons/tasks/class_tasksManagement.inc +++ b/plugins/addons/tasks/class_tasksManagement.inc @@ -29,7 +29,7 @@ class tasksManagement extends management ['LinkColumn', ['attributes' => 'cn', 'label' => 'Tasks']], //below fdTasksMailObject must be change to have a type defined within task creation (new ldap attributes ?hidden) ['TasksColumn', ['attributes' => 'fdTasksMailObject', 'label' => 'Types']], - ['Column', ['attributes' => 'fdTasksScheduleDate', 'label' => 'Schedule']], + ['TasksColumn', ['attributes' => 'fdTasksScheduleDate', 'label' => 'Schedule']], //below fdTasksStatus attribute needs to be calculated based on the type of the task. ['TasksColumn', ['attributes' => 'fdTasksStatus', 'label' => 'Status']], ['Column', ['attributes' => 'fdTasksCreationDate', 'label' => 'Creation Date']],