Skip to content

Commit

Permalink
Update NTPClient.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnysucd committed Oct 17, 2020
1 parent be559de commit cb82ff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NTPClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ String NTPClient::getFormattedDate(unsigned long secs) {
}
String monthStr = ++month < 10 ? "0" + String(month) : String(month); // jan is month 1
String dayStr = ++rawTime < 10 ? "0" + String(rawTime) : String(rawTime); // day of month
return String(year) + "-" + monthStr + "-" + dayStr + "T" + this->getFormattedTime(secs ? secs : 0) + "Z";
return String(year) + "/" + monthStr + "/" + dayStr;
}

void NTPClient::end() {
Expand Down

0 comments on commit cb82ff0

Please sign in to comment.