Fixed to write the date instead of 'date'