Skip to content

Commit

Permalink
Merge pull request #208 from SalesforceFoundation/feature/244
Browse files Browse the repository at this point in the history
Merge Feature/244 into Master
  • Loading branch information
salesforce-suyash-more authored Nov 15, 2024
2 parents e5b6f37 + 77bd938 commit 1a3864d
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
if (intervalType == WEEK) {
dateObject.setDate(dateObject.getDate() + interval * 7);
} else if (intervalType == MONTH) {
dateObject = this.addMonths(dateObject, interval);
dateObject.setMonth(dateObject.getMonth() + interval);
} else if (intervalType == YEAR) {
dateObject.setFullYear(dateObject.getFullYear() + interval);
}
Expand All @@ -104,7 +104,10 @@
// Calculated Properties
id: "" + i, // A workaround to force the datatable to see this id as a string
amount: thisPayment,
scheduleDate: dateObject.toISOString().split("T")[0],
scheduleDate: $A.localizationService.formatDate(
dateObject.toISOString(),
"YYYY-MM-DD"
),
requestId: m.request.recordId
});
}
Expand Down

0 comments on commit 1a3864d

Please sign in to comment.