Fix utc/local time issue while exporting data to csv.