fix a date formatting bug in Build