2
0
mirror of https://github.com/frappe/books.git synced 2025-04-09 11:41:49 +00:00

fix: resolved date mismatch in print template

This commit is contained in:
AbleKSaju 2025-01-10 09:18:48 +05:30
parent ed0ae3678b
commit 9e14a8e649

View File

@ -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',