修复日期显示问题:1)在index.php和pending_bookings.php中添加时区设置;2)在db_connect.php中添加全局时区设置,确保系统一致性
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
// db_connect.php - 数据库连接文件
|
||||
date_default_timezone_set('Asia/Shanghai');
|
||||
require_once 'config.php';
|
||||
|
||||
try {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
date_default_timezone_set('Asia/Shanghai');
|
||||
session_start();
|
||||
require_once 'db_connect.php';
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
date_default_timezone_set('Asia/Shanghai');
|
||||
// pending_bookings.php - 待预约页面,处理WPS表单数据
|
||||
session_start();
|
||||
require_once 'db_connect.php';
|
||||
|
||||
Reference in New Issue
Block a user