Skip to content

Commit

Permalink
Fix issue with date format; 0.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMaaarc committed Jun 10, 2024
1 parent a06bdb3 commit e5c4327
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Openinghours plugin to manage and display opening hours.",
"license": "MIT",
"type": "kirby-plugin",
"version": "0.0.5",
"version": "0.0.6",
"authors": [
{
"name": "Marc Stampfli",
Expand Down
4 changes: 2 additions & 2 deletions snippets/blocks/openinghours.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
<strong>
<?php if (!$openinghour->isDefault()): ?>
<?php
$start = $openinghour->getStartDate('E, d.M.Y');
$start = $openinghour->getStartDate('E, d.MM.Y');
$start = substr_replace($start, '', strpos($start, '.'), 1);

$end = $openinghour->getEndDate('E, d.M.Y');
$end = $openinghour->getEndDate('E, d.MM.Y');
$end = substr_replace($end, '', strpos($end, '.'), 1);
?>

Expand Down

0 comments on commit e5c4327

Please sign in to comment.