fix attempt for datetime compatibility