Skip to content

Commit 0c11f4c

Browse files
committed
ensure unix timestamp is calculated from UTC time
1 parent 8efd7f4 commit 0c11f4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ArduinoCellular.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
unsigned long ArduinoCellular::getTime() {
99
int year, month, day, hour, minute, second;
1010
float tz;
11-
modem.getNetworkTime(&year, &month, &day, &hour, &minute, &second, &tz);
11+
modem.getNetworkUTCTime(&year, &month, &day, &hour, &minute, &second, &tz);
1212
return Time(year, month, day, hour, minute, second).getUNIXTimestamp();
1313
}
1414

0 commit comments

Comments
 (0)