I myself spent the whole day to figure it out. Implemented the clock using third-party functions. And only in the evening while analyzing code HAL_RTC_GetTime() did it come to me. The function counts only one day days_elapsed in a circle and counts d...