Go Down

Topic: MKR 1400 get local time, not UTC (Read 157 times) previous topic - next topic


Jul 21, 2018, 02:35 am Last Edit: Jul 21, 2018, 06:21 am by alanoatwork
The getTime() function appears to return the time in UTC, however when I use the GSM passthrough app and issue the AT+CCLK? command I get the local time.

Is there an easy way to get the local time from within my sketch?  I've given up trying to use Time.h, Timelib.h and Timezone.h as these aren't compatible with MKRGSM.h


I now see that the getTime function in MKRGSM is adjusting for the local time and returning UTC. It's easy enough to comment out the code but I've made a request to update the library to allow the option of either local time or UTC.

Go Up