Store due date without the time

This commit is contained in:
Frederic Guillot
2015-01-25 18:55:11 -05:00
parent 1fc6d69e2e
commit 28a7f57d86
4 changed files with 26 additions and 8 deletions

View File

@@ -77,11 +77,11 @@ class TaskExport extends Base
';
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)));
}
$rq = $this->db->execute($sql, array($from, $to, $project_id));