Fix output to file for timestamps in file