1.找到该国家在zoneinfo中的时区信息
从https://www.iana.org/time-zones下载tzdata2019c.tar.gz
加压tzdata2019c.tar.gz。
比如在asia搜索Singapore(新加坡),可以找到如下内容
# Singapore
# taken from Mok Ly Yng (2003-10-30)
# http://www.math.nus.edu.sg/aslaksen/teaching/timezone.html
# Zone NAME STDOFF RULES FORMAT [UNTIL]
Zone Asia/Singapore 6:55:25 - LMT 1901 Jan 1
6:55:25 - SMT 1905 Jun 1 # Singapore M.T.
7:00 - +07 1933 Jan 1
7:00 0:20 +0720 1936 Jan 1
7:20 - +0720 1941 Sep 1
7:30 - +0730 1942 Feb 16
9:00 - +09 1945 Sep 12
7:30 - +0730 1982 Jan 1
8:00 - +08
2.vendor/mediatek/proprietary/packages/apps/SettingsLib/res/xml/timezones.xml添加Singpore时区,
+ <timezone id="Asia/Singapore"></timezone>
这样修改后,在设置中就能找到新加坡时区,并设置成功。