diff --git a/NTPClient.cpp b/NTPClient.cpp index 05df7d7..e7afd4d 100755 --- a/NTPClient.cpp +++ b/NTPClient.cpp @@ -193,7 +193,7 @@ int8_t NTPClient::update() { unsigned long NTPClient::getEpochTime() const { return this->_timeOffset + // User offset this->_currentEpoc + // Epoc returned by the NTP server - ((millis() - this->_lastUpdate + (int)(this->_current_epoc_dec*1000)) / 1000); // Time since last update + ((millis() - this->_lastUpdate + this->_current_epoc_dec*1000)/1000.0); // Time since last update } float NTPClient::get_millis() const{