From 03a799a290ae92e1a7ad7bb389f11c8ecac4a211 Mon Sep 17 00:00:00 2001 From: rt Date: Wed, 30 Oct 2019 08:41:13 +0000 Subject: [PATCH] Update 'fancytokens.php' 502: $sql = "SELECT e.id , e.summary, e.title, e.registration_link_text, 503: + e.start_date as start_date , 505: if( e.is_online_registration = 1 AND 576: $sql = "SELECT e.id , e.summary, e.title, e.registration_link_text, e.start_date as start_date , --- fancytokens.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fancytokens.php b/fancytokens.php index bfcd6d9..13f4b78 100644 --- a/fancytokens.php +++ b/fancytokens.php @@ -499,7 +499,7 @@ $protocol = $isSecure ? 'https://' : 'http://'; if( is_numeric( $date_number) && ( $date_unit == 'day' || $date_unit == 'week' || $date_unit == 'month' )){ // get event data $sql = "SELECT e.id , e.summary, e.title, e.registration_link_text, - date_format( e.start_date, '%d/%m/%Y à %Hh%i' ) as start_date , + e.start_date as start_date , if( e.is_online_registration = 1 AND ( e.registration_end_date is null || now() <= e.registration_end_date ) AND ( e.registration_start_date is null || now() >= e.registration_start_date ), '1', '0') as @@ -571,7 +571,7 @@ $protocol = $isSecure ? 'https://' : 'http://'; if( is_numeric( $token_event_id) ){ // get event data $sql = "SELECT e.id , e.summary, e.title, e.registration_link_text, - date_format( e.start_date, '%d/%m/%Y à %Hh%i' ) as start_date , + e.start_date as start_date , if( e.is_online_registration = 1 AND ( e.registration_end_date is null || now() <= e.registration_end_date ) AND ( e.registration_start_date is null || now() >= e.registration_start_date ), '1', '0') as