diff --git a/edsdme/blocks/announcement-date/announcement-date.js b/edsdme/blocks/announcement-date/announcement-date.js index b3eac4c..48608e7 100644 --- a/edsdme/blocks/announcement-date/announcement-date.js +++ b/edsdme/blocks/announcement-date/announcement-date.js @@ -28,7 +28,7 @@ export default async function init(el) { const month = String(createdDate.getMonth() + 1).padStart(2, '0'); const day = String(createdDate.getDate()).padStart(2, '0'); const datetime = `${createdDate.getFullYear()}-${month}-${day}`; - const dateEl = createTag('time', { datetime, class: 'announcement-date detail-m' }, formatDate(createdDateValue, config.locale.ietf)); + const dateEl = createTag('time', { datetime, class: 'announcement-date detail-m' }, formatDate(createdDateValue, config?.locale?.ietf)); el.append(dateEl); }