Skip to content

Commit

Permalink
MWPW-154151 - Announcement Template
Browse files Browse the repository at this point in the history
- fixes date localization
  • Loading branch information
richardhand committed Sep 3, 2024
1 parent 591a039 commit 7614c9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion edsdme/blocks/announcement-date/announcement-date.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 7614c9a

Please sign in to comment.