go-sql-driver/mysql

NullTime does not use DSN location

Open

#568 aperta il 14 apr 2017

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)Go (1789 fork)batch import
help wanted

Metriche repository

Star
 (9946 star)
Metriche merge PR
 (Merge medio 5h 59m) (4 PR mergiate in 30 g)

Descrizione

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?

Guida contributor