On our site InDebted’s blog page, I’ve attempted to format our blog post dates (pulled from Contentful) as follows:
const date = Intl.DateTimeFormat('en-AU', { dateStyle: 'medium' }).format(new Date(article.fields.publishDate)
On local testing, and on our staging server (https://stage-www.indebted.co) these are formatted correctly as follows:
Feb 14, 2021
However on our production site, formatting doesn’t work and looks like this:
2/14/2021
I’m really not sure how this happening, especially now that our staging and master branches are even. Is there some configuration option I’m missing?