Fixed #23316 -- Added datetime.time serialization in migrations.