Fix timezone detection on macOS 10.13/newer Linux distros

The location of zoneinfo directory has changed on macOS 10.13,
Ubuntu 16, RHEL 7 and SuSe Linux 12. It results in the misdetection
of the OS timezone by ICU. Cherry-picking the CLs for the following
upstream bug fixes it.

Test: In Javascript console, the following should give the correct
    (new Intl.DateTimeFormat()).resolvedOptions().timeZone

Change-Id: I711f4b27e73dc6855951055a601e80f711d34423
Reviewed-by: Mark Mentovai <>
3 files changed