Skip to content

Commit

Permalink
move to a ISO datestring stamp for published content
Browse files Browse the repository at this point in the history
  • Loading branch information
zhdzmn committed Aug 6, 2024
1 parent df18ffc commit 89a072f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion marketo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export async function publishMarketo(req, res) {
await marketo.initialize();

// generate marketo email
const { previewURL } = await generateEmail(marketo, mktoTokens, `${structuredContent.title}-${Date.now()}`);
const { previewURL } = await generateEmail(marketo, mktoTokens, `${structuredContent.title}-${(new Date()).toISOString()}`);
appLogger.info({url: previewURL}, 'preview generated');

await postPublicAPI(token, payload.data.publishing_event.links.publishing_metadata, {
Expand Down

0 comments on commit 89a072f

Please sign in to comment.