Time zone question

28 views
Skip to first unread message

Yalim Yildirim

unread,
Sep 3, 2024, 7:54:31 AM9/3/24
to GPSTest
I am running GPSTest on a DIGI ConnectCore 8M Mini embedded SoM, which is running a modified Android build based on Android 11. More info here. The SoM is connected to a Telit GNSS chip and runs a custom driver which interacts with the chip and provides the gps data that GPSTest uses. 

My problem is that the value in the "Time" field seems to always be UTC rather than the time adjusted for the time zone.

I can see in the source code that the Time value reflects the "location.time" field, where the location object comes from the locationManager in SharedLocationManager which listens to location data coming from the gnss driver.  

I don't see any reference to TimeZone in the code, and the gnss driver also does not provide the application with time zone data as far as I understand. Can someone clarify to me how the GPSTest application determines the correct the time zone when displaying the "Time" field?

Sean Barbeau

unread,
Sep 3, 2024, 9:58:55 AM9/3/24
to GPSTest
The time zone should be set by the Android system setting for time zone, which is under something like "Settings->General management->Date and Time->Automatic time zone", and if unchecked there is an option for manually setting the time zone. See https://support.google.com/android/answer/2841106. Since you're running a custom Android build this may be something you need to configure yourself - see https://source.android.com/docs/core/connect/time.

Sean

Reply all
Reply to author
Forward
0 new messages