From 28a7f57d86c2c2fbef92da37eacb19980a133ed2 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 25 Jan 2015 18:55:11 -0500 Subject: Store due date without the time --- app/Model/SubtaskExport.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/Model/SubtaskExport.php') diff --git a/app/Model/SubtaskExport.php b/app/Model/SubtaskExport.php index 672c50c6..1e728c05 100644 --- a/app/Model/SubtaskExport.php +++ b/app/Model/SubtaskExport.php @@ -94,11 +94,11 @@ class SubtaskExport extends Base public function getSubtasks($project_id, $from, $to) { if (! is_numeric($from)) { - $from = $this->dateParser->resetDateToMidnight($this->dateParser->getTimestamp($from)); + $from = $this->dateParser->removeTimeFromTimestamp($this->dateParser->getTimestamp($from)); } if (! is_numeric($to)) { - $to = $this->dateParser->resetDateToMidnight(strtotime('+1 day', $this->dateParser->getTimestamp($to))); + $to = $this->dateParser->removeTimeFromTimestamp(strtotime('+1 day', $this->dateParser->getTimestamp($to))); } return $this->db->table(SubTask::TABLE) -- cgit v1.2.3