[PATCH 6.18 263/614] lib/vsprintf: Check pointer before dereferencing in time_and_date()