Fix date format. Use io.Writer instead of *io.Writer