From 7e4f540499bc40dd02768646eef7bb02a49918dd Mon Sep 17 00:00:00 2001 From: giomba Date: Sat, 5 Dec 2020 22:51:01 +0100 Subject: [PATCH] dockerization complete --- main.php | 5 +++-- schedule.php | 2 +- shared.php | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/main.php b/main.php index 8556c2e..3a55f37 100644 --- a/main.php +++ b/main.php @@ -6,7 +6,7 @@ * */ -require_once('config.php'); +require_once('/data/config.php'); require_once('shared.php'); // === BEGIN === @@ -346,7 +346,8 @@ DEBUG and botlog('handle callback query'); $text = htmlspecialchars($msg->message->text); - $dateObj = DateTime::createFromFormat('Y-n-j-G', $currentTab['year'] . '-' . $currentTab['month'] . '-' . $currentTab['day'] . '-' . $callback_data); + $dateObj = DateTime::createFromFormat('Y-n-j-G-e', $currentTab['year'] . '-' . $currentTab['month'] . '-' . $currentTab['day'] . '-' . $callback_data . '-Europe/Rome'); + $dateObj->setTimezone(new DateTimeZone('UTC')); $formattedDate = $dateObj->format('Y-m-d H:i:s'); diff --git a/schedule.php b/schedule.php index 9911b73..4feba7d 100644 --- a/schedule.php +++ b/schedule.php @@ -3,7 +3,7 @@ * This script must be called from the system every hour (i.e. cron) */ -require_once('config.php'); +require_once('/data/config.php'); require_once('shared.php'); if (DEBUG) botlog("\n\n\n".'[II] Scheduler starting at ' . date('Y-m-d H:i:s') . ' ====================' . "\n\n"); diff --git a/shared.php b/shared.php index 3ad37ab..d499a31 100644 --- a/shared.php +++ b/shared.php @@ -1,5 +1,5 @@