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:
parent
ed0ae3678b
commit
9e14a8e649
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user