Fixes the format of dates as timestamp