Skip to content

time: func Parse should return day out of range error for Feb. 31 #7268

@gopherbot

Description

@gopherbot

by dgnorton:

What steps will reproduce the problem?

http://play.golang.org/p/x6Efm26yQu

What is the expected output?

"...day out of range" error

What do you see instead?

"2014-03-03 00:00:00 +0000 UTC"

Which compiler are you using (5g, 6g, 8g, gccgo)?

6g

Which operating system are you using?

Linux 3.11-2-amd64 #1 SMP Debian 3.11.8-1 (2013-11-13) x86_64 GNU/Linux

Which version are you using?  (run 'go version')

go version go1.1.2 linux/amd64

Discussion:

https://groups.google.com/forum/#!topic/golang-nuts/eAtolHlyGVQ

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions