go-sql-driver / go-sql-driver/mysql

Improve doc about 0000-00-00 date/datetime when loc is not UTC

Open
#821 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
15.3k
Forks
2.3k
Avg merge
2h 23m
Merged PRs (30d)
10

Description

In #783 some [documentation](https://github.com/go-sql-driver/mysql/pull/783/commits/66d26b5f0989086dd55ea9526b037b868e5e3913) has been added about the driver behaviour for `0000-00-00` when `parseTime` is `true`.

But the zero value of `time.Time` is in location UTC. What happens when the `loc` option is set to another timezone than UTC?
The documentation should clarify this.

Cc: @methane

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.