]> Cypherpunks repositories - gostls13.git/commit
time: restore support for large negative days in Date
authorIan Lance Taylor <iant@golang.org>
Fri, 2 Aug 2024 18:33:34 +0000 (11:33 -0700)
committerGopher Robot <gobot@golang.org>
Sat, 3 Aug 2024 01:06:03 +0000 (01:06 +0000)
commit2ffcfcef5597ae9d8f27f6d251785e1624c8c020
tree77d1deba7d1c127a8e3d8467e9be5768eaaa0214
parent9cfe3a86d34f7f4a401dae9a22389b12f7e8bb2e
time: restore support for large negative days in Date

CL 586257 converted days to uint32 which is usually fine but fails for
negative days close to cycle boundaries.

Fixes #68718

Change-Id: I8dc5b8fe0c7c1921beb204da1913b9a1ab39280d
Reviewed-on: https://go-review.googlesource.com/c/go/+/602815
Reviewed-by: Rob Pike <r@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/time/time.go
src/time/time_test.go