Hide due date time if time is 00:00

This commit is contained in:
Timo
2019-08-21 03:25:17 +02:00
committed by Frédéric Guillot
parent 4a3f4fcfc2
commit 2774d917cf

View File

@@ -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>