Hide due date time if time is 00:00
This commit is contained in:
@@ -68,7 +68,11 @@
|
|||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
">
|
">
|
||||||
<i class="fa fa-calendar"></i>
|
<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>
|
</span>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user