You should only run this once, then comment out the setDS1302Time line.

: Designed to work with the DS1302's backup battery feature, ensuring time is kept even if the Arduino loses power. Library Installation

| Limitation | Details | |------------|---------| | | Last update ~2014; no support for modern Arduino cores | | No ESP32/STM32 support | Timing assumptions fail on faster MCUs | | Day-of-week bug | Some versions miscompute dayofweek internally | | No alarm/interrupts | Unlike DS3231, DS1302 lacks alarms | | Accuracy | DS1302 drifts significantly (±5–20 min/month) without calibration | | 24-hour mode only | Library forces 24-hour mode; 12-hour mode not supported |