2
0
mirror of https://github.com/frappe/books.git synced 2025-02-02 12:08:27 +00:00

Merge pull request #1082 from AbleKSaju/fix-print-template-date

fix: resolved date mismatch in print template
This commit is contained in:
Akshay 2025-01-13 10:31:35 +05:30 committed by GitHub
commit 55606dcf2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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