go-sql-driver/mysql

NullTime does not use DSN location

Open

#568 opened on Apr 14, 2017

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Go (9,946 stars) (1,789 forks)batch import
help wanted

Description

Issue description

The NullTime helper is hardcoded to parse in location time.UTC but should really use the location set in the DSN (which defaults to UTC). Maybe you could have a variable in the utils timeZone that gets set during DSN Parsing?

Contributor guide