From 9e14a8e6493a939c2eb464d638eced85cc4a12a5 Mon Sep 17 00:00:00 2001 From: AbleKSaju <126228406+AbleKSaju@users.noreply.github.com> Date: Fri, 10 Jan 2025 09:18:48 +0530 Subject: [PATCH] fix: resolved date mismatch in print template --- src/utils/printTemplates.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/printTemplates.ts b/src/utils/printTemplates.ts index 1f636539c..6e0db7314 100644 --- a/src/utils/printTemplates.ts +++ b/src/utils/printTemplates.ts @@ -109,7 +109,7 @@ export async function getPrintTemplatePropValues( function getDate(dateString: string): string { const date = new Date(dateString); - date.setMonth(date.getMonth() - 1); + date.setMonth(date.getMonth()); return `${date.toLocaleString('default', { month: 'short',