[1.7.x] Fixed #23998 -- Added datetime.time support to migrations questioner.

Backport of 54085b0f9ba7d9f705f9b9c90d3433b0ef6aa042 from master