1
0
mirror of https://github.com/golang/go synced 2024-10-03 19:21:21 -06:00
go/src/time
Simon Rawet b4f3c9339e time: fix AddDate with nil location
AddDate now retrieves location from t.Location() to ensure that
it never calls Date with a nil location.

Added test for this bug on all Time's methods

Fixes #15852

Change-Id: Id2a222af56993f741ad0b802a2c3b89e8e463926
Reviewed-on: https://go-review.googlesource.com/23561
Reviewed-by: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
2016-10-06 18:41:23 +00:00
..
example_test.go time: improve Truncate and Round documentation 2016-09-12 22:07:17 +00:00
export_android_test.go time: load time zones from the system tzdata file on Android 2016-08-23 06:15:35 +00:00
export_test.go
export_windows_test.go
format_test.go time: fix optional fractional seconds range err 2016-08-23 15:58:08 +00:00
format.go time: allow long fractions in ParseDuration 2016-09-19 19:46:09 +00:00
genzabbrs.go time: genzabbrs.go skips Feb when checking months 2016-06-09 15:31:08 +00:00
internal_test.go
sleep_test.go
sleep.go time: update comment to reflect correct file path. 2016-10-01 01:09:32 +00:00
sys_plan9.go time: don't depend on the io package 2016-05-09 20:31:47 +00:00
sys_unix.go time: don't depend on the io package 2016-05-09 20:31:47 +00:00
sys_windows.go time: don't depend on the io package 2016-05-09 20:31:47 +00:00
tick_test.go all: single space after period. 2016-03-02 00:13:47 +00:00
tick.go all: single space after period. 2016-03-02 00:13:47 +00:00
time_test.go time: fix AddDate with nil location 2016-10-06 18:41:23 +00:00
time.go time: fix AddDate with nil location 2016-10-06 18:41:23 +00:00
zoneinfo_abbrs_windows.go time: always use $GOROOT/lib/time/zoneinfo.zip with genzabbrs.go 2016-08-28 02:51:07 +00:00
zoneinfo_android_test.go time: load time zones from the system tzdata file on Android 2016-08-23 06:15:35 +00:00
zoneinfo_android.go time: load time zones from the system tzdata file on Android 2016-08-23 06:15:35 +00:00
zoneinfo_ios.go
zoneinfo_plan9.go
zoneinfo_read.go time: don't depend on the io package 2016-05-09 20:31:47 +00:00
zoneinfo_test.go time: set Local.name on windows 2016-05-14 17:30:16 +00:00
zoneinfo_unix.go time: load time zones from the system tzdata file on Android 2016-08-23 06:15:35 +00:00
zoneinfo_windows_test.go time: handle localized time zone names 2015-08-26 04:40:59 +00:00
zoneinfo_windows.go time: always use $GOROOT/lib/time/zoneinfo.zip with genzabbrs.go 2016-08-28 02:51:07 +00:00
zoneinfo.go time: always use $GOROOT/lib/time/zoneinfo.zip with genzabbrs.go 2016-08-28 02:51:07 +00:00