summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo <tili2@gmx.de>2019-08-21 03:25:17 +0200
committerFrédéric Guillot <fred@kanboard.net>2019-08-20 18:25:17 -0700
commit2774d917cf759e574db44135c5a5160e25525527 (patch)
treecf3a0d3dbfa48c88404429a802c52719255ef448
parent4a3f4fcfc2e2dcc2cefda4376e51caa59a5217f6 (diff)
Hide due date time if time is 00:00
-rw-r--r--app/Template/board/task_footer.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/Template/board/task_footer.php b/app/Template/board/task_footer.php
index 08af52a2..e5c6d29b 100644
--- a/app/Template/board/task_footer.php
+++ b/app/Template/board/task_footer.php
@@ -68,7 +68,11 @@
<?php endif ?>
">
<i class="fa fa-calendar"></i>
- <?= $this->dt->datetime($task['date_due']) ?>
+ <?php if (date('Hi', $task['date_due']) === '0000' ): ?>
+ <?= $this->dt->date($task['date_due']) ?>
+ <?php else: ?>
+ <?= $this->dt->datetime($task['date_due']) ?>
+ <?php endif ?>
</span>
<?php endif ?>
</div>