fix(install/bundle): fix the wrong submission time

The submissions' submit time is not correct because the time zone of mysql isn't set. And this commit has fixed it.
This commit is contained in:
EarringYYR 2019-03-09 12:50:07 +08:00
parent a604bf9476
commit 3bc9419e3f

View File

@ -71,6 +71,7 @@ UOJEOF
usermod -d /var/lib/mysql/ mysql
cat >/etc/mysql/mysql.conf.d/uoj_mysqld.cnf <<UOJEOF
[mysqld]
default-time-zone='+8:00'
character-set-server=utf8
collation-server=utf8_unicode_ci
init_connect='SET NAMES utf8'