]> Cypherpunks repositories - gostls13.git/commit
time: load time zones from the system tzdata file on Android
authorElias Naur <elias.naur@gmail.com>
Mon, 27 Jun 2016 19:38:04 +0000 (21:38 +0200)
committerElias Naur <elias.naur@gmail.com>
Tue, 23 Aug 2016 06:15:35 +0000 (06:15 +0000)
commit80b31c05e6ae37c09162406590b9e3b99f0fff9b
treea118ceca36b4b79cb8d1bcc24e58bb7c61ac8b59
parent0df5ab7e6569a8bf6bc87975e539706163bf664a
time: load time zones from the system tzdata file on Android

Android timezones are in a packed format, different from the separate
files of a regular Unix system. This CL contain the necessary code to
parse the packed tzdata file and extract time zones from it. It also
adds a basic test to ensure the new parser works.

Fixes #13581

Change-Id: Idebe73726c3d4c2de89dd6ae1d7d19f975207500
Reviewed-on: https://go-review.googlesource.com/24494
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/time/export_android_test.go [new file with mode: 0644]
src/time/zoneinfo_android.go [new file with mode: 0644]
src/time/zoneinfo_android_test.go [new file with mode: 0644]
src/time/zoneinfo_unix.go