I am using two commands in different parts of my code to get the current time. When I get a GPS fix using card.location and manually when using card.status. Here is an example of the two commands run within minutes of each other.
The time returned by card.location is roughly 2 hours ahead of the time returned by card.status. Is this normal behaviour? The GPS time is the correct local time, but I am only 1 hour ahead of GMT, so this doesn’t quite explain it.
Is there a way to make both of these times the return the value same?
The time returned by card.location is the time that the location data was acquired, not necessarily the current time.
The time returned by card.status is approximately when the Notecard was first powered up.
The time returned by card.time is the current time (as long as the Notecard has synced with Notehub at least once since being powered on). This is what you want to use to get the current time.