From: Tim King Date: Tue, 22 Nov 2022 21:52:11 +0000 (-0800) Subject: doc/go1.20: document adding to the timeformat vet analysis X-Git-Tag: go1.20rc1~97 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4c0c0e5d9c59dbc2ce6493de4baf3ffb4c1531bb;p=gostls13.git doc/go1.20: document adding to the timeformat vet analysis Address the release notes TODO regarding the timeformat analyzer. Change-Id: Ic132569d84d6e00eeed4ea49f2467e09af4b0756 Reviewed-on: https://go-review.googlesource.com/c/go/+/452915 Run-TryBot: Tim King Reviewed-by: Ian Lance Taylor Reviewed-by: Alan Donovan TryBot-Result: Gopher Robot --- diff --git a/doc/go1.20.html b/doc/go1.20.html index c61d308088..5fadb3e3aa 100644 --- a/doc/go1.20.html +++ b/doc/go1.20.html @@ -186,12 +186,6 @@ Do not send CLs removing the interior tags from such phrases.

Vet

-

New diagnostic for incorrect time formats

- -

- TODO: https://go.dev/issue/48801: check for time formats with 2006-02-01 -

-

Improved detection of loop variable capture by nested functions

@@ -208,6 +202,17 @@ Do not send CLs removing the interior tags from such phrases. inspects the last statements within if, switch, and select statements.

+

New diagnostic for incorrect time formats

+ +

+ The vet tool now reports use of the time format 2006-02-01 (yyyy-dd-mm) + with Time.Format and + time.Parse. + This format does not appear in common date standards, but is frequently + used by mistake when attempting to use the ISO 8601 date format + (yyyy-mm-dd). +

+

Runtime