Browse Source

Fix timezone

Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
v_master
Sara Damiano 5 years ago
parent
commit
da5c7b4233
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/TinyGsmTime.tpp

+ 1
- 1
src/TinyGsmTime.tpp View File

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


Loading…
Cancel
Save