ropg / ezTime

ezTime — pronounced "Easy Time" — is a very easy to use Arduino time and date library that provides NTP network time lookups, extensive timezone support, formatted time and date strings, user events, millisecond precision and more.
MIT License
327 stars 92 forks source link

Calling Timezone.now() or time_t now() crashes & reboots system #121

Closed dominiqueborer closed 2 years ago

dominiqueborer commented 2 years ago

I'm running ezTime on a DoIT Devkit v1. When calling Timezone.now() or time_t now(), esp32 crashes and reboots.

dominiqueborer commented 2 years ago

I figured it out. It was caused by sending both a text as string and a time_t variable to the serial output. I.e. Serial.println("doorActionTimestamp is: " + Timezone.now()); will crash it. however doing it like this works: Serial.println("doorActionTimestamp is: "); Serial.println( Timezone.now());