From ab488b78a2e2d0eb8d4f79b02db6d9a716ba9d4f Mon Sep 17 00:00:00 2001 From: Chris Abraham Date: Sun, 25 Aug 2024 17:02:33 +0700 Subject: [PATCH] Fix event date query for event listing in megamenu which was showing Kubecon CN after it finished Signed-off-by: Chris Abraham --- .../cncf-twenty-two/includes/shortcodes/event-banner.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/wp-content/themes/cncf-twenty-two/includes/shortcodes/event-banner.php b/web/wp-content/themes/cncf-twenty-two/includes/shortcodes/event-banner.php index 3626dbfd..29833a08 100644 --- a/web/wp-content/themes/cncf-twenty-two/includes/shortcodes/event-banner.php +++ b/web/wp-content/themes/cncf-twenty-two/includes/shortcodes/event-banner.php @@ -26,8 +26,9 @@ function show_event_in_menu() { 'meta_query' => array( array( 'key' => 'lf_event_date_end', - 'value' => gmdate( 'Y-m-d' ), + 'value' => date_i18n( 'Y-m-d' ), 'compare' => '>=', + 'type' => 'DATETIME', ), array( 'key' => 'lf_event_logo',