]> Cypherpunks repositories - gostls13.git/commit
time: don't match '---' month in time.Parse
authorCholerae Hu <choleraehyq@gmail.com>
Tue, 25 Jul 2017 06:04:50 +0000 (14:04 +0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 8 Sep 2017 12:50:14 +0000 (12:50 +0000)
commit32e117d971eb4f802f27b98a0f13b7d9fc2d73fb
tree38ee502f1e217f4f7e65277137bed970b274017a
parenta323656bb3edce6b2913a4946be8481ef1311afc
time: don't match '---' month in time.Parse

The existing implementation will panic when month in date string is '---'.

Fixed #21113

Change-Id: I8058ae7a4102e882f8b7e9c65d80936b563265e4
Reviewed-on: https://go-review.googlesource.com/51010
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/time/format.go
src/time/format_test.go