diff --git a/lambda/writePass/index.js b/lambda/writePass/index.js index 85b8fa7d..5dfb13ab 100644 --- a/lambda/writePass/index.js +++ b/lambda/writePass/index.js @@ -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) {