Format timestamp headers correctly