Fix the way date time is written to fd