Verified Commit 830d0bc1 authored by dockx thibault's avatar dockx thibault
Browse files

:sparkles: Feat(Tasks) - Proper human readable schedule

Adds proper human readable schedule while keeping the attribute
format untouched for further processing.
Showing with 7 additions and 1 deletion
+7 -1
......@@ -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);
}
......
......@@ -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']],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment