Skip to content

Commit

Permalink
Remove set time reduce by 17 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelbles07 committed Dec 7, 2024
1 parent e3156d4 commit 6cb0698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AirGradient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ String AirGradient::deviceId(void) {
void AirGradient::setCurrentTime(long epochTime) {
// set current day/time
struct timeval tv;
tv.tv_sec = epochTime - 1020; // 17 minutes // don't know why it always off by 17 minutes
tv.tv_sec = epochTime; // - 1020; // 17 minutes // don't know why it always off by 17 minutes
settimeofday(&tv, NULL);
Serial.println(epochTime);
Serial.printf("Set current time to %s\n", getCurrentTime().c_str());
Expand Down

0 comments on commit 6cb0698

Please sign in to comment.