Skip to content

time: Parse ignores weekday #11303

@awly

Description

@awly

What version of Go are you using (go version)?
go version go1.4.2 darwin/amd64

What did you do?
http://play.golang.org/p/h19M_zGLtU

What did you expect to see?
Wed Jan 5 00:00:00 0000
error: conflicting day of month and weekday

What did you see instead?
Sat Jan 1 00:00:00 0000
Sun Jan 2 00:00:00 0000

Seems like time.Parse simply ignores weekday value and only looks at day of month.
Simply updating the docs to reflect this should be enough.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions