diff --git a/dialect/mysqldialect/dialect.go b/dialect/mysqldialect/dialect.go index 865d2aa7a..959df66ae 100644 --- a/dialect/mysqldialect/dialect.go +++ b/dialect/mysqldialect/dialect.go @@ -51,8 +51,7 @@ func New() *Dialect { return d } -func NewWithLocation(loc string) *Dialect { - d := New() +func (d *Dialect) WithTimeLocation(loc string) *Dialect { location, err := time.LoadLocation(loc) if err != nil { panic(fmt.Errorf("mysqldialect can't load provided location %s: %s", loc, err))