Skip to content

Commit 5c8e249

Browse files
committed
config php and mysql default timezone to Asia/Shanghai
1 parent 3c222ba commit 5c8e249

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

conf/mysql.cnf

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ long_query_time = 3
2323
slow-query-log-file = /var/lib/mysql/mysql.slow.log
2424
log-error = /var/lib/mysql/mysql.error.log
2525

26-
default-time-zone = '+8:00'
26+
default-time-zone = Asia/Shanghai
2727

2828
[mysql]
2929
default-character-set = utf8mb4

conf/php.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ cli_server.color = On
936936
[Date]
937937
; Defines the default timezone used by the date functions
938938
; http://php.net/date.timezone
939-
;date.timezone =
939+
date.timezone = Asia/Shanghai
940940

941941
; http://php.net/date.default-latitude
942942
;date.default_latitude = 31.7667

0 commit comments

Comments
 (0)