1 package sqlgen 2 3 import "time" 4 5 var timeLocation = time.UTC 6 7 // Set the location to use when interpolating time.Time instances. See https://golang.org/pkg/time/#LoadLocation 8 // NOTE: This has no effect when using prepared statements. 9 func SetTimeLocation(loc *time.Location) { 10 timeLocation = loc 11 } 12 13 func GetTimeLocation() *time.Location { 14 return timeLocation 15 } 16