Skip to content
Permalink
Browse files

Merge pull request #191 from arakelian/mysql-patch

Set MySQL time_zone setting to match local setting
  • Loading branch information...
hunterlong committed Jun 6, 2019
2 parents 98190a2 + 0439462 commit 175f20aa9a91efde62c050f8702a8f9a66524676
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/database.go
@@ -194,7 +194,7 @@ func (db *DbConfig) Connect(retry bool, location string) error {
dbType = "sqlite3"
case "mysql":
host := fmt.Sprintf("%v:%v", Configs.DbHost, Configs.DbPort)
conn = fmt.Sprintf("%v:%v@tcp(%v)/%v?charset=utf8&parseTime=True&loc=UTC", Configs.DbUser, Configs.DbPass, host, Configs.DbData)
conn = fmt.Sprintf("%v:%v@tcp(%v)/%v?charset=utf8&parseTime=True&loc=UTC&time_zone=%%27UTC%%27", Configs.DbUser, Configs.DbPass, host, Configs.DbData)
case "postgres":
sslMode := "disable"
if postgresSSL != "" {

0 comments on commit 175f20a

Please sign in to comment.
You can’t perform that action at this time.