Force set timezone to UTC in logd.

(cherry picked from commit 6f9196757252271759fcf816b6ba987f50dbf59d)

logd assumes that it is running in UTC time zone.
However, if persist.sys.timezone is set at some point later,
that affects and confuses logd behavior.
To avoid such a case, this CL sets TZ to UTC, which overrides
the property's behavior.

Test: Ran CtsOsTestCases.
Test: gTest liblog-unit-tests, logd-unit-tests and logcat-unit-tests
Bug: 33566779
Change-Id: Ib9edd4cb06f019a33aaf8d77d33bd82fdbbda480
1 file changed
tree: fd18e93671dd9fc58641e22e81da8366eec0e2df
  1. liblog/
  2. logcat/
  3. logd/
  4. logwrapper/