For people who want to build a logger or schedule events without using a extra real time clock module like the DS3231, I propose using this sketch as a basis. When you power ON the ESP32, a simple web server is created that allows synching our phone's time with 'rtc.setTime(epochTime)'. This is an alternative to setting the time on your example sketch.
In the future the web server can be called again by triggering and interrupt with a button, for example.
For people who want to build a logger or schedule events without using a extra real time clock module like the DS3231, I propose using this sketch as a basis. When you power ON the ESP32, a simple web server is created that allows synching our phone's time with 'rtc.setTime(epochTime)'. This is an alternative to setting the time on your example sketch.
In the future the web server can be called again by triggering and interrupt with a button, for example.