From de1a975799904c3e0d6f6d9f3590b695c54663a0 Mon Sep 17 00:00:00 2001 From: Timon Ringwald Date: Mon, 11 Jul 2022 12:30:32 +0200 Subject: [PATCH] parse times from db into time.Time --- utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.go b/utils.go index 25f35e5..3844143 100644 --- a/utils.go +++ b/utils.go @@ -3,5 +3,5 @@ package advsql import "fmt" 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) }