diff --git a/NTPClient.cpp b/NTPClient.cpp index b435855..f0775e0 100755 --- a/NTPClient.cpp +++ b/NTPClient.cpp @@ -169,7 +169,7 @@ void NTPClient::end() { this->_udpSetup = false; } -void NTPClient::setTimeOffset(int timeOffset) { +void NTPClient::setTimeOffset(long timeOffset) { this->_timeOffset = timeOffset; } diff --git a/NTPClient.h b/NTPClient.h index a31d32f..da28c03 100755 --- a/NTPClient.h +++ b/NTPClient.h @@ -89,7 +89,7 @@ class NTPClient { /** * Changes the time offset. Useful for changing timezones dynamically */ - void setTimeOffset(int timeOffset); + void setTimeOffset(long timeOffset); /** * Set the update interval to another frequency. E.g. useful when the