summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-07-03 19:57:52 -0400
committerFrederic Guillot <fred@kanboard.net>2015-07-03 19:57:52 -0400
commitb054790200cb6108dd24b9997486cbfac5d0a39d (patch)
tree29d0cb95a4639b402a565535278f2b913824d9da
parentd3f3669840d239299789352a98442412d59f539b (diff)
Merge manually pull-request #965
-rw-r--r--CONTRIBUTORS.md1
-rw-r--r--app/Template/board/task_footer.php3
2 files changed, 3 insertions, 1 deletions
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index 99f6414c..02eec48c 100644
--- a/CONTRIBUTORS.md
+++ b/CONTRIBUTORS.md
@@ -54,6 +54,7 @@ Contributors:
- [Norcnorc](https://github.com/norcnorc)
- [Nramel](https://github.com/nramel)
- [Null-Kelvin](https://github.com/Null-Kelvin)
+- [Olaf Lessenich](https://github.com/xai)
- [Oliver Bertuch](https://github.com/poikilotherm)
- [Olivier Maridat](https://github.com/oliviermaridat)
- [Oren Ben-Kiki](https://github.com/orenbenkiki)
diff --git a/app/Template/board/task_footer.php b/app/Template/board/task_footer.php
index 7593c102..e9f22b7b 100644
--- a/app/Template/board/task_footer.php
+++ b/app/Template/board/task_footer.php
@@ -21,7 +21,8 @@
<div class="task-board-icons">
<?php if (! empty($task['date_due'])): ?>
<span class="task-board-date <?= time() > $task['date_due'] ? 'task-board-date-overdue' : '' ?>">
- <i class="fa fa-calendar"></i>&nbsp;<?= dt('%b %e', $task['date_due']) ?>
+ <i class="fa fa-calendar"></i>
+ <?= (date('Y') === date('Y', $task['date_due']) ? dt('%b %e', $task['date_due']) : dt('%b %e %Y', $task['date_due'])) ?>
</span>
<?php endif ?>