Does anyone have a code snippet that they can share that shows how to set the time zone?
I am using a rooted Android mini PC connected to a TV as a kiosk. The app pulls data from a local server and displays real-time information based on that location. However the clock in the lower corner only matches if it was set to the same time zone that the server is in. I can get the time zone, time zone offset and DST indicator from the server and determine what I need to change the time zone to, however I have not been successful in getting it to change on the device and display the proper time on the system clock.
Any help would be greatly appreciated.
I am using a rooted Android mini PC connected to a TV as a kiosk. The app pulls data from a local server and displays real-time information based on that location. However the clock in the lower corner only matches if it was set to the same time zone that the server is in. I can get the time zone, time zone offset and DST indicator from the server and determine what I need to change the time zone to, however I have not been successful in getting it to change on the device and display the proper time on the system clock.
Any help would be greatly appreciated.