Skip to content

Commit

Permalink
fix: resolved date mismatch in print template
Browse files Browse the repository at this point in the history
  • Loading branch information
AbleKSaju committed Jan 10, 2025
1 parent ed0ae36 commit 9e14a8e
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 9e14a8e

Please sign in to comment.