Fix timezone

Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
This commit is contained in:
Sara Damiano
2020-02-18 16:15:48 -05:00
parent f7659e389c
commit da5c7b4233

View File

@@ -84,7 +84,7 @@ class TinyGsmTime {
isec = thisModem().streamGetIntLength(2); isec = thisModem().streamGetIntLength(2);
char tzSign = thisModem().stream.read(); char tzSign = thisModem().stream.read();
itimezone = thisModem().streamGetIntBefore('\n'); itimezone = thisModem().streamGetIntBefore('\n');
if (strcmp(tzSign, '-') == 0) { itimezone = itimezone * -1; } if (tzSign == '-') { itimezone = itimezone * -1; }
// Set pointers // Set pointers
if (iyear < 2000) iyear += 2000; if (iyear < 2000) iyear += 2000;