fixing bug in results download where it was attempting to format an integer as a date