Skip to content

Commit 4a247b2

Browse files
committed
use current year from JS
1 parent 8ee9a6a commit 4a247b2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/api/sqs/handlers/emailNotifications.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export const emailNotificationsHandler: SQSHandlerFunction<
4848
...payload,
4949
id: metadata.reqId,
5050
from: senderEmailAddress,
51+
currentYear: new Date().getFullYear(),
5152
}),
5253
Charset: "UTF-8",
5354
},

src/api/sqs/handlers/templates/notification.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const template = /*html*/ `
5353
emails. To ensure delivery, add {{from}} to your address book. </p>
5454
<p style="font-size: 12px; color: #888; margin-top: 15px;"> Please do not respond to this message, as
5555
emails to this address are not monitored. </p>
56-
<p style="font-size: 12px; color: #888; margin-top: 15px;"> &copy; {{date "" format="YYYY"}} ACM @ UIUC.
56+
<p style="font-size: 12px; color: #888; margin-top: 15px;"> &copy; {{currentYear}} ACM @ UIUC.
5757
All trademarks are the property of their respective owners. </p>
5858
<p style="font-size: 12px; color: #888; margin-top: 45px;"> {{id}} </p>
5959
</td>

0 commit comments

Comments
 (0)