fixing 'to'-datetime not being migrated