Skip to content

Commit

Permalink
Remove ParseTime from mysql connection
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitletondor committed Feb 24, 2019
1 parent 6553448 commit 89f8794
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@ package db

import (
"database/sql"

_ "github.com/go-sql-driver/mysql"
)

var database *sql.DB

func Init(user string, pass string, schema string) (*sql.DB, error) {
// Init Mysql DB
dbLink, err := sql.Open("mysql", user+":"+pass+"@"+schema+"?parseTime=True")
dbLink, err := sql.Open("mysql", user+":"+pass+"@"+schema)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 89f8794

Please sign in to comment.