From 9f8d1f0d4c322aaa1d33ac42ce899b55bdc035ea Mon Sep 17 00:00:00 2001 From: Aubin <60398825+aubin-tchoi@users.noreply.github.com> Date: Tue, 26 Nov 2024 17:45:06 +0100 Subject: [PATCH] [connectors] fix(Zendesk) - invalid date errors (#8921) * fix: fix invalid date errors * fix: actually created_at is already in ISO format :innocent: --- connectors/src/connectors/zendesk/lib/sync_ticket.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connectors/src/connectors/zendesk/lib/sync_ticket.ts b/connectors/src/connectors/zendesk/lib/sync_ticket.ts index 2b28ee2eb465..006d17c40493 100644 --- a/connectors/src/connectors/zendesk/lib/sync_ticket.ts +++ b/connectors/src/connectors/zendesk/lib/sync_ticket.ts @@ -186,7 +186,7 @@ ${comments author = null; } return ` -[${new Date(Number(comment?.created_at)).toISOString()}] ${ +[${comment?.created_at}] ${ author ? `${author.name} (${author.email})` : "Unknown User" }: ${comment.body}`;