diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-04-02 20:18:07 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-04-02 20:18:07 -0400 |
commit | c72bca04a8be19b2da699ee58f9203f08318d241 (patch) | |
tree | e5c8bc83042831d7021ab5834c7112c27eb022d3 /app/Template | |
parent | 65acf68dc68d34f3aa5f658fcfb207087d052859 (diff) |
Format dates on budget view
Diffstat (limited to 'app/Template')
-rw-r--r-- | app/Template/budget/create.php | 2 | ||||
-rw-r--r-- | app/Template/budget/index.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/Template/budget/create.php b/app/Template/budget/create.php index 5a919ce6..5b2976f4 100644 --- a/app/Template/budget/create.php +++ b/app/Template/budget/create.php @@ -17,7 +17,7 @@ <?php foreach ($lines as $line): ?> <tr> <td><?= n($line['amount']) ?></td> - <td><?= $this->e($line['date']) ?></td> + <td><?= dt('%B %e, %Y', strtotime($line['date'])) ?></td> <td><?= $this->e($line['comment']) ?></td> <td> <?= $this->a(t('Remove'), 'budget', 'confirm', array('project_id' => $project['id'], 'budget_id' => $line['id'])) ?> diff --git a/app/Template/budget/index.php b/app/Template/budget/index.php index 442a6b64..01525829 100644 --- a/app/Template/budget/index.php +++ b/app/Template/budget/index.php @@ -25,7 +25,7 @@ </tr> <?php foreach ($daily_budget as $line): ?> <tr> - <td><?= $this->e($line['date']) ?></td> + <td><?= dt('%B %e, %Y', strtotime($line['date'])) ?></td> <td><?= n($line['in']) ?></td> <td><?= n($line['out']) ?></td> <td><?= n($line['left']) ?></td> |