mirror of
https://github.com/golang/go
synced 2024-11-05 20:26:13 -07:00
51021cc83f
registry.ReadSubKeyNames requires QUERY access right in addition to ENUMERATE_SUB_KEYS. This was making TestLocalZoneAbbr fail on Windows 7 in Paris/Madrid timezone. It succeeded on Windows 8 because timezone name changed from "Paris/Madrid" to "Romance Standard Time", the latter being matched by an abbrs entry. Change-Id: I791287ba9d1b3556246fa4e9e1604a1fbba1f5e6 Reviewed-on: https://go-review.googlesource.com/9809 Reviewed-by: Alex Brainman <alex.brainman@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
15 lines
368 B
Go
15 lines
368 B
Go
// Copyright 2013 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 ForceAusForTesting() {
|
|
ResetLocalOnceForTest()
|
|
localOnce.Do(initAusTestingZone)
|
|
}
|
|
|
|
func ToEnglishName(stdname, dstname string) (string, error) {
|
|
return toEnglishName(stdname, dstname)
|
|
}
|