Skip to content

Commit

Permalink
BRS-812 weekday localization in API (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronpettit authored Sep 15, 2022
1 parent 01eed07 commit 5d3e030
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lambda/writePass/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ exports.handler = async (event, context) => {

const bookingPSTShortDate = bookingPSTDateTime.toISODate();

const bookingPSTDayOfWeek = bookingPSTDateTime.weekdayLong;
const bookingPSTDayOfWeek = bookingPSTDateTime.setLocale('en-CA').weekdayLong;

// check if passes are required on the booking weekday
if (facilityData.bookingDays[bookingPSTDayOfWeek] === false) {
Expand Down

0 comments on commit 5d3e030

Please sign in to comment.