Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
189 views
in Technique[技术] by (71.8m points)

android - how do i change timezone using adb

I want to change the timezone using adb shell command.

I went through some posts which allow changing it in linux, but they are not valid for android.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

For the list of tzdata values I go to http://en.wikipedia.org/wiki/List_of_tz_database_time_zones

To set the timezone use setprop persist.sys.timezone <TZ> command:

setprop persist.sys.timezone "America/Chicago"

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...