Skip to content

Commit

Permalink
#731 - Fix date() function
Browse files Browse the repository at this point in the history
  • Loading branch information
johanjanssens committed Jun 4, 2021
1 parent 4aad51f commit a11d388
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contrib/sites/blog/pages/index.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

<div class="mb-4 text-sm text-gray-700">
by <a href="#" class="text-gray-700"><?= $article->getAuthor()->getName(); ?></a>
on <?= date($article->published_date, 'd M, Y'); ?>
on <?= date('d M, Y', $article->published_date); ?>
<span class="font-bold mx-1"> | </span>
<a href="#" class="text-gray-700"><?= $article->category->title; ?></a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion contrib/sites/blog/templates/layouts/default.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<!-- footer -->
<footer class="w-full bg-white px-6 border-t">
<div class="container mx-auto max-w-4xl py-6 flex flex-wrap md:flex-no-wrap justify-between items-center text-sm">
&copy;<?= date('now', 'Y'); ?> <?= config()->site->name ?>. All rights reserved.
&copy;<?= date('Y', 'now'); ?> <?= config()->site->name ?>. All rights reserved.
<div class="pt-4 md:p-0 text-center md:text-right text-xs">
<?= partial('/navigation/footer'); ?>
</div>
Expand Down

0 comments on commit a11d388

Please sign in to comment.