Skip to content

Commit

Permalink
fix: timezone apply to opp email
Browse files Browse the repository at this point in the history
  • Loading branch information
YazeedLoonat committed Dec 9, 2024
1 parent 19eb855 commit a2e2128
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions api/src/services/email.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,9 @@ export class EmailService {
if (listing.applicationDueDate) {
tableRows.push({
label: this.polyglot.t('rentalOpportunity.applicationsDue'),
value: dayjs(listing.applicationDueDate).format('MMMM D, YYYY'),
value: dayjs(listing.applicationDueDate)
.tz(process.env.TIME_ZONE)
.format('MMMM D, YYYY'),
});
}
tableRows.push({
Expand Down Expand Up @@ -573,7 +575,9 @@ export class EmailService {
if (lotteryEvent && lotteryEvent.startDate) {
tableRows.push({
label: this.polyglot.t('rentalOpportunity.lottery'),
value: dayjs(lotteryEvent.startDate).format('MMMM D, YYYY'),
value: dayjs(lotteryEvent.startDate)
.tz(process.env.TIME_ZONE)
.format('MMMM D, YYYY'),
});
}
}
Expand Down

0 comments on commit a2e2128

Please sign in to comment.