Skip to content

Commit

Permalink
Fix invoice notify email dates
Browse files Browse the repository at this point in the history
  • Loading branch information
SarjuHansaliya committed Jan 18, 2019
1 parent 7a4bf01 commit 8660dcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/emails/html/invoice_notify.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@
let lastName = timesheet.user.lastName;
const startDate = new Date(timesheet.startsAt);
const endDate = new Date(timesheet.endsAt);
let startsAt = startDate.getFullYear() + "/" + ("00" + startDate.getMonth()).slice(-2) + "/" + ("00" + startDate.getDate()).slice(-2);
let endsAt = endDate.getFullYear() + "/" + ("00" + endDate.getMonth()).slice(-2) + "/" + ("00" + endDate.getDate()).slice(-2);
let startsAt = startDate.getFullYear() + "/" + ("00" + (startDate.getMonth() + 1)).slice(-2) + "/" + ("00" + startDate.getDate()).slice(-2);
let endsAt = endDate.getFullYear() + "/" + ("00" + (endDate.getMonth() + 1)).slice(-2) + "/" + ("00" + endDate.getDate()).slice(-2);
let previewUrl = timesheet.preview && timesheet.preview.url;
let attachments = timesheet.attachments || [];
%>
Expand Down

0 comments on commit 8660dcd

Please sign in to comment.