Skip to content

Commit

Permalink
Merge pull request #1082 from AbleKSaju/fix-print-template-date
Browse files Browse the repository at this point in the history
fix: resolved date mismatch in print template
  • Loading branch information
akshayitzme authored Jan 13, 2025
2 parents 8a7559b + 9e14a8e commit 55606dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/printTemplates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 55606dc

Please sign in to comment.