diff --git a/library/config.php b/library/config.php index ad7a0fc8c..bd8d31e2c 100644 --- a/library/config.php +++ b/library/config.php @@ -439,9 +439,6 @@ $bb_cfg['super_admins'] = [ 2 => 'admin', ]; -// Date format -$bb_cfg['date_format'] = 'Y-m-d'; - // Subforums $bb_cfg['sf_on_first_page_only'] = true; diff --git a/library/defines.php b/library/defines.php index d29f6afd0..7aad1b192 100644 --- a/library/defines.php +++ b/library/defines.php @@ -81,6 +81,7 @@ define('LOG_MAX_SIZE', 1048576); // bytes ini_set('error_reporting', E_ALL); ini_set('display_errors', 0); ini_set('display_startup_errors', 0); +define('MYSQLI_ERROR_REPORTING', MYSQLI_REPORT_ALL ^ MYSQLI_REPORT_STRICT); ini_set('log_errors', 1); ini_set('error_log', LOG_DIR . '/php_errors.log'); // path to log file enabled only if log_errors == 1 (native) define('WHOOPS_LOG_FILE', LOG_DIR . '/php_whoops.log'); // log file enabled only if log_errors == 1 (whoops) diff --git a/src/Legacy/SqlDb.php b/src/Legacy/SqlDb.php index 280778ccb..f43eec2da 100644 --- a/src/Legacy/SqlDb.php +++ b/src/Legacy/SqlDb.php @@ -77,6 +77,8 @@ class SqlDb */ public function init() { + mysqli_report(MYSQLI_ERROR_REPORTING); + // Connect to server $this->connect(); diff --git a/viewtopic.php b/viewtopic.php index 4eac73369..afcf5e266 100644 --- a/viewtopic.php +++ b/viewtopic.php @@ -572,7 +572,7 @@ for ($i = 0; $i < $total_posts; $i++) { $max_post_time = max($max_post_time, $postrow[$i]['post_time']); $poster_posts = ($poster_id != GUEST_UID) ? $postrow[$i]['user_posts'] : ''; $poster_from = ($postrow[$i]['user_from'] && $poster_id != GUEST_UID) ? $postrow[$i]['user_from'] : ''; - $poster_joined = ($poster_id != GUEST_UID) ? $lang['JOINED'] . ': ' . bb_date($postrow[$i]['user_regdate'], $bb_cfg['date_format']) : ''; + $poster_joined = ($poster_id != GUEST_UID) ? $lang['JOINED'] . ': ' . bb_date($postrow[$i]['user_regdate'], 'Y-m-d H:i', false) : ''; $poster_longevity = ($poster_id != GUEST_UID) ? delta_time($postrow[$i]['user_regdate']) : ''; $post_id = $postrow[$i]['post_id']; $mc_type = $postrow[$i]['mc_type'];