From 89a072f911b36fa942ceafc8e1382e6b704a09cb Mon Sep 17 00:00:00 2001 From: A K M Zahiduzzaman Date: Tue, 6 Aug 2024 13:33:21 -0400 Subject: [PATCH] move to a ISO datestring stamp for published content --- marketo/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/marketo/index.js b/marketo/index.js index 3e12348..6ed5139 100644 --- a/marketo/index.js +++ b/marketo/index.js @@ -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, {