Changed flights to datetime in isLegal().
I leik camels