Converting Arduino Compatible library to work with ESP32

A simpler solution might be not to use an RTC. Then the troublesome library will no longer be needed.

ESP32 can get time from the internet when it starts up and stay synchronised to keep the time accurate. Almost no code is required for this, as all the required functions are included in the ESP32 Arduino core.