parse times from db into time.Time
This commit is contained in:
parent
4346466345
commit
de1a975799
2
utils.go
2
utils.go
@ -3,5 +3,5 @@ package advsql
|
|||||||
import "fmt"
|
import "fmt"
|
||||||
|
|
||||||
func connString(host string, port uint16, user, pass, db string) string {
|
func connString(host string, port uint16, user, pass, db string) string {
|
||||||
return fmt.Sprintf("%s:%s@tcp(%s:%d)/%s", user, pass, host, port, db)
|
return fmt.Sprintf("%s:%s@tcp(%s:%d)/%s?parseTime=true", user, pass, host, port, db)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user