fix format for datetimes in headers