ESPDateTime
ESPDateTime copied to clipboard
P.gotttimezone () prints out a problem
选择ESP8266,nodemcu1.0,烧录示例代码,会出现无线重启,栈溢出。
(Select ESP8266, nodemcu1.0, burn sample code, there will be wireless restart, stack overflow.)
Serial.printf("%04d/%02d/%02d %02d:%02d:%02d %ld (%s)\n", p.getYear(), p.getMonth(), p.getMonthDay(), p.getHours(), p.getMinutes(), p.getSeconds(), p.getTime(), p.getTimeZone());
将其中包含的%s,p.getTimeZone()打印对象去除掉就不会了,但是在烧录到esp32上面没有这个情况。
(Removing the %s, p.gettimezone () print object contained in it will not, but this is not the case when burning to ESP32.)