From 0fd06d5e4e4b977873a226b4c4d85039d5ab26b4 Mon Sep 17 00:00:00 2001
From: Patrick Fic <>
Date: Mon, 4 Oct 2021 11:48:55 -0700
Subject: [PATCH] IO-1421 Add day of week to smart scheduling buttons.
---
.../schedule-job-modal/schedule-job-modal.component.jsx | 2 +-
client/src/utils/DateFormatter.jsx | 6 +++++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/client/src/components/schedule-job-modal/schedule-job-modal.component.jsx b/client/src/components/schedule-job-modal/schedule-job-modal.component.jsx
index 74d2fff28..bf0bb45ce 100644
--- a/client/src/components/schedule-job-modal/schedule-job-modal.component.jsx
+++ b/client/src/components/schedule-job-modal/schedule-job-modal.component.jsx
@@ -124,7 +124,7 @@ export function ScheduleJobModalComponent({
handleDateBlur();
}}
>
- {d}
+ {d}
))}
diff --git a/client/src/utils/DateFormatter.jsx b/client/src/utils/DateFormatter.jsx
index 883e518ce..9452e67bc 100644
--- a/client/src/utils/DateFormatter.jsx
+++ b/client/src/utils/DateFormatter.jsx
@@ -3,7 +3,11 @@ import moment from "moment";
import React from "react";
export function DateFormatter(props) {
- return props.children ? moment(props.children).format("MM/DD/YYYY") : null;
+ return props.children
+ ? moment(props.children).format(
+ props.includeDay ? "ddd MM/DD/YYYY" : "MM/DD/YYYY"
+ )
+ : null;
}
export function DateTimeFormatter(props) {