Skip to content

time: loadZoneFile() doesn't forward error returned while reading zoneinfo file. #9723

@ksaket

Description

@ksaket

Loading ZoneInfo accesses disk which can fail for various reasons. The method time.loadZoneFile() does not expose these errors to time.LoadLocation(). Hence, it reports a generic "unknown time zone" error as an effect to such failures.

https://golang.org/src/time/zoneinfo_unix.go

@dsymonds: who is aware of this problem.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions