dockerization complete

This commit is contained in:
giomba 2020-12-05 22:51:01 +01:00
parent a710ce6718
commit 7e4f540499
3 changed files with 5 additions and 4 deletions

View File

@ -6,7 +6,7 @@
* *
*/ */
require_once('config.php'); require_once('/data/config.php');
require_once('shared.php'); require_once('shared.php');
// === BEGIN === // === BEGIN ===
@ -346,7 +346,8 @@ DEBUG and botlog('handle callback query');
$text = htmlspecialchars($msg->message->text); $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'); $formattedDate = $dateObj->format('Y-m-d H:i:s');

View File

@ -3,7 +3,7 @@
* This script must be called from the system every hour (i.e. cron) * 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'); require_once('shared.php');
if (DEBUG) botlog("\n\n\n".'[II] Scheduler starting at ' . date('Y-m-d H:i:s') . ' ====================' . "\n\n"); if (DEBUG) botlog("\n\n\n".'[II] Scheduler starting at ' . date('Y-m-d H:i:s') . ' ====================' . "\n\n");

View File

@ -1,5 +1,5 @@
<?php <?php
require_once('config.php'); require_once('/data/config.php');
// Base logging function. All logging functions use this. // Base logging function. All logging functions use this.
// Change this to output everything on stdout, on file, on socket, on whathever you want... // Change this to output everything on stdout, on file, on socket, on whathever you want...