summaryrefslogtreecommitdiffstats
path: root/includes/view-helpers/class-giglogadmin-concertstable.php
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2023-01-28 17:38:32 +0100
committerHarald Eilertsen <haraldei@anduin.net>2023-01-28 17:38:32 +0100
commitc2354e7397f44998691dfe8241e49c5a65f66dcc (patch)
tree5e910758e81742b37bf0a2ef3be15eed5941dead /includes/view-helpers/class-giglogadmin-concertstable.php
parent9355261bfe664f181bd8b6c4fe23a2949e06769e (diff)
downloadgigologadmin-c2354e7397f44998691dfe8241e49c5a65f66dcc.tar.gz
gigologadmin-c2354e7397f44998691dfe8241e49c5a65f66dcc.tar.bz2
gigologadmin-c2354e7397f44998691dfe8241e49c5a65f66dcc.zip
Use DateTimeImmutable for concert date/time.
Diffstat (limited to 'includes/view-helpers/class-giglogadmin-concertstable.php')
-rw-r--r--includes/view-helpers/class-giglogadmin-concertstable.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/view-helpers/class-giglogadmin-concertstable.php b/includes/view-helpers/class-giglogadmin-concertstable.php
index 1288cbd..9bf848c 100644
--- a/includes/view-helpers/class-giglogadmin-concertstable.php
+++ b/includes/view-helpers/class-giglogadmin-concertstable.php
@@ -291,7 +291,7 @@ if ( ! class_exists( 'GiglogAdmin_ConcertsTable' ) ) {
$content .= '</td>';
$content .=
- '<td>' . date( 'd.M.Y', strtotime( $concert->cdate() ) ) . '</td>'
+ '<td>' . $concert->cdate()->format( 'd.m.Y' ) . '</td>'
. '<td>' . strtoupper( esc_html( $concert->cname() ) ) . '</td>'
. '<td>' . esc_html( $concert->venue()->name() ) . '</td>';