[PATCH 6.17 223/507] lib/vsprintf: Check pointer before dereferencing in time_and_date()