mirror of
https://github.com/frappe/books.git
synced 2025-02-13 01:18:37 +00:00
Merge pull request #1082 from AbleKSaju/fix-print-template-date
fix: resolved date mismatch in print template
This commit is contained in:
commit
55606dcf2d
@ -109,7 +109,7 @@ export async function getPrintTemplatePropValues(
|
|||||||
|
|
||||||
function getDate(dateString: string): string {
|
function getDate(dateString: string): string {
|
||||||
const date = new Date(dateString);
|
const date = new Date(dateString);
|
||||||
date.setMonth(date.getMonth() - 1);
|
date.setMonth(date.getMonth());
|
||||||
|
|
||||||
return `${date.toLocaleString('default', {
|
return `${date.toLocaleString('default', {
|
||||||
month: 'short',
|
month: 'short',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user