What do parseTime and loc mean when golang connects to mysql?

what do parseTime and loc mean when golang connects to mysql?

import (
  "github.com/jinzhu/gorm"
  _ "github.com/jinzhu/gorm/dialects/mysql"
)

func main() {
  db, err := gorm.Open("mysql", "user:password@/dbname?charset=utf8&parseTime=True&loc=Local")
  defer db.Close()
}
Nov.02,2021

parseTime is whether the query result is automatically resolved into time.
loc is the time zone setting for MySQL.

Menu