From 6ef83d0e058d653322a8f9eb1131e665fb9b2a70 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Mon, 29 Feb 2016 22:40:26 -0500 Subject: Add unit test for transition model --- app/Model/TaskExport.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/Model/TaskExport.php') diff --git a/app/Model/TaskExport.php b/app/Model/TaskExport.php index ed179a4f..64f5e77a 100644 --- a/app/Model/TaskExport.php +++ b/app/Model/TaskExport.php @@ -2,6 +2,7 @@ namespace Kanboard\Model; +use Kanboard\Core\DateParser; use PDO; /** @@ -106,7 +107,7 @@ class TaskExport extends Base $task['score'] = $task['score'] ?: 0; $task['swimlane_id'] = isset($swimlanes[$task['swimlane_id']]) ? $swimlanes[$task['swimlane_id']] : '?'; - $task = $this->dateParser->format($task, array('date_due', 'date_modification', 'date_creation', 'date_started', 'date_completed'), 'Y-m-d'); + $task = $this->dateParser->format($task, array('date_due', 'date_modification', 'date_creation', 'date_started', 'date_completed'), DateParser::DATE_FORMAT); return $task; } -- cgit v1.2.3