--- fenglin/lib/common.inc.php 2025/04/05 04:10:16 1.41 +++ fenglin/lib/common.inc.php 2025/04/06 08:15:37 1.42 @@ -87,5 +87,13 @@ $BBS_user_msg_retention = 60; $BBS_new_article_period = 14; - $PHP_bin = "php"; + // PHP CLI path + $PHP_bin = "php"; + + // Keep this consistent with $DB_session_timezone in db_open.conf.php + $BBS_timezone = 'Asia/Shanghai'; + $BBS_runtime_tz = new DateTimeZone($BBS_timezone); + + // Assume DateTime fields retrieved from DB are in $BBS_runtime_tz timezone + date_default_timezone_set($BBS_timezone); ?>