Skip to content

time: date fields have not the same value at parsing a time layout #29902

@tredoe

Description

@tredoe

When it is parsed a time, then the date fields are not set with the same value.

What version of Go are you using (go version)?

$ go version
go version go1.11.4 darwin/amd64

Does this issue reproduce with the latest release?

Yes

What did you do?

https://play.golang.org/p/ZQvuNS98GZh

What did you expect to see?

I expected that the the fields of the date were all to zero (0000-00-00) or at least all with the same value (0001-01-01)

What did you see instead?

The date is set to: 0000-01-01

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions