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 (1,789 forks)batch import
help wanted

Repository metrics

Stars
 (9,946 stars)
PR merge metrics
 (Avg merge 5h 59m) (4 merged PRs in 30d)

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