1 // Copyright 2015 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
15 wd
, err
:= syscall
.Getwd()
20 // The working directory at initialization is the root of the
21 // app bundle: "/private/.../bundlename.app". That's where we
23 zoneFile
= wd
+ "/zoneinfo.zip"
26 func forceZipFileForTesting(zipOnly
bool) {
27 // On iOS we only have the zip file.
30 func initTestingZone() {
31 z
, err
:= loadZoneFile(zoneFile
, "America/Los_Angeles")
33 panic("cannot load America/Los_Angeles for testing: " + err
.Error())
40 // TODO(crawshaw): [NSTimeZone localTimeZone]
44 func loadLocation(name
string) (*Location
, error
) {
45 z
, err
:= loadZoneFile(zoneFile
, name
)