ESPDateTime
ESPDateTime copied to clipboard
DateTime.setTime(1691507990,1) Unsuccessful
when I used “DateTime.setTime(1691507990,1)” to set time, the value of "DateTime.getTime()" is 0.
code:
DateTime.setTime(1691507990,1); Serial.printf("getBootTime:%ld, getTime:%ld\r\n",DateTime.getBootTime(), DateTime.getTime());
log:
setTime,timeSecs:1691507990, bootTimeSecs:5398 getBootTime:1691507985, getTime:0