结论:在调用 HAL_RTC_GetTime() 后,要再调用 HAL_RTC_GetDate() 才能更新时间。 参考 https://blog.csdn.net/freedompoi/article/details/112525760