mirror of
https://github.com/golang/go
synced 2024-11-18 05:54:49 -07:00
7340d13977
Loading and testing timezones is currently implemented using several, partly redundant, OS specific data structures and functions. This change merges most of that code into OS independent implementations. Change-Id: Iae2877c5f48d1e4a9de9ce55d0530d52e24cf96e Reviewed-on: https://go-review.googlesource.com/64391 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
13 lines
318 B
Go
13 lines
318 B
Go
// Copyright 2016 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package time
|
|
|
|
func ForceAndroidTzdataForTest(tzdata bool) {
|
|
forceZipFileForTesting(false)
|
|
if tzdata {
|
|
zoneSources = zoneSources[:len(zoneSources)-1]
|
|
}
|
|
}
|