RTC (real-time clock) in STM32L4 series - date and time is not updating on the debugger variable
Debuggers are notorious for not updating registers, a few workarounds include:

Copy the registers to variables and try viewing the temporary variables in the debugger. (make sure you protect them somehow to make sure the compiler doesn't optimize them out, if they aren't being used and you have optimizations turned on the temporary variables will be optimized out).

Or use the debugger 'console' or equivalent comm channel with printf statements to print the registers contents.