Browse Source

dockerization complete

docker
giomba 2 years ago
parent
commit
7e4f540499
  1. 5
      main.php
  2. 2
      schedule.php
  3. 2
      shared.php

5
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');

2
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");

2
shared.php

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

Loading…
Cancel
Save