mirror of
https://github.com/golang/go.git
synced 2026-04-04 02:10:08 +09:00
time: reference -tags=timetzdata in testing panic
This will spare anyone who hits it having to search for the workaround. Change-Id: Iff0d449212f2675ac78e30ae5ffc8efb4d924088 Reviewed-on: https://go-review.googlesource.com/c/go/+/334611 Trust: Josh Bleecher Snyder <josharian@gmail.com> Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
@@ -12,7 +12,7 @@ func init() {
|
||||
func initTestingZone() {
|
||||
z, err := loadLocation("America/Los_Angeles", zoneSources[len(zoneSources)-1:])
|
||||
if err != nil {
|
||||
panic("cannot load America/Los_Angeles for testing: " + err.Error())
|
||||
panic("cannot load America/Los_Angeles for testing: " + err.Error() + "; you may want to use -tags=timetzdata")
|
||||
}
|
||||
z.name = "Local"
|
||||
localLoc = *z
|
||||
|
||||
Reference in New Issue
Block a user