Non standardised date formats

Hi,

We’ve recently been noticing some irregularities with the format of dates with the filing-history end point. Sometimes we’re receiving Epoch format and sometimes we’re receiving a string formatted YYYY-MM-DD.

An example is company 06866765, for which we see mixed formats:

{
“type”: “CERTNM”,
“description”: “certificate-change-of-name-company”,
“resolutions”: [{
“category”: “change-of-name”,
“date”: 1405327611000,
“description”: “resolution-change-of-name”,
“description_values”: {
“resolution_date”: “2014-07-10”
},
“subcategory”: “resolution”,
“type”: “RES15”
}],
“description_values”: {
“description”: “Company name changed oil & gas insights LIMITEDcertificate issued on 14/07/14”
},
“date”: “2014-07-14”
/// etc
}

There are a number of other Epoch dates in the response e.g. the action_date on the statement-of-capital.

Should we be handling both formats or is there a bug in the API? Thank you.

Kind regards,