diff --git a/Common/UI/Components/Date/StartAndEndDate.tsx b/Common/UI/Components/Date/StartAndEndDate.tsx index d1b8c7ce41..78c938d633 100644 --- a/Common/UI/Components/Date/StartAndEndDate.tsx +++ b/Common/UI/Components/Date/StartAndEndDate.tsx @@ -213,9 +213,10 @@ const StartAndEndDate: DateFilterFunction = ( buttonSize={ButtonSize.Small} onClick={() => { // set it to past 1 hour - const endDate: Date = OneUptimeDate.resetSecondsAndMilliseconds( - OneUptimeDate.getCurrentDate(), - ); + const endDate: Date = + OneUptimeDate.resetSecondsAndMilliseconds( + OneUptimeDate.getCurrentDate(), + ); const startDate: Date = OneUptimeDate.addRemoveHours( endDate, -1, @@ -237,9 +238,10 @@ const StartAndEndDate: DateFilterFunction = ( buttonSize={ButtonSize.Small} onClick={() => { // set it to past 3 hour - const endDate: Date = OneUptimeDate.resetSecondsAndMilliseconds( - OneUptimeDate.getCurrentDate(), - ); + const endDate: Date = + OneUptimeDate.resetSecondsAndMilliseconds( + OneUptimeDate.getCurrentDate(), + ); const startDate: Date = OneUptimeDate.addRemoveHours( endDate, -3, diff --git a/Common/UI/Components/Input/Input.tsx b/Common/UI/Components/Input/Input.tsx index 4f5ec01a8d..ae71f97d1d 100644 --- a/Common/UI/Components/Input/Input.tsx +++ b/Common/UI/Components/Input/Input.tsx @@ -190,7 +190,8 @@ const Input: FunctionComponent = ( readOnly={props.readOnly || props.disabled || false} type={props.type || "text"} step={ - props.type === InputType.DATETIME_LOCAL && props.showSecondsForDateTime + props.type === InputType.DATETIME_LOCAL && + props.showSecondsForDateTime ? "1" : undefined }