diff --git a/src/components/CippSettings/CippBackupSettings.jsx b/src/components/CippSettings/CippBackupSettings.jsx
index ebf6620b458a..d45bf6385a85 100644
--- a/src/components/CippSettings/CippBackupSettings.jsx
+++ b/src/components/CippSettings/CippBackupSettings.jsx
@@ -3,6 +3,7 @@ import CippButtonCard from "/src/components/CippCards/CippButtonCard";
import { ApiPostCall } from "/src/api/ApiCall";
import { useDialog } from "/src/hooks/use-dialog";
import { SettingsBackupRestore } from "@mui/icons-material";
+import Link from "next/link";
const CippBackupSettings = () => {
const createDialog = useDialog();
@@ -16,12 +17,9 @@ const CippBackupSettings = () => {
+ }
+ >
+ Restore From File
+
+
+ {scheduledBackup.isSuccess &&
+ scheduledBackup.data?.[0]?.Name !== "Automated CIPP Backup" && (
+ <>
+ }
+ onClick={handleEnableScheduledBackup}
+ >
+ Schedule Backups
+
+ >
+ )}
+
+ >
+ }
+ />
+
+ ) : (
+
+
+
+
+
+
+ )}
+
+
+ >
+ );
+};
+
+Page.getLayout = (page) => {page};
+
+export default Page;
diff --git a/src/utils/get-cipp-formatting.js b/src/utils/get-cipp-formatting.js
index ed6964ade59c..beb510e35804 100644
--- a/src/utils/get-cipp-formatting.js
+++ b/src/utils/get-cipp-formatting.js
@@ -22,11 +22,11 @@ export const getCippFormatting = (data, cellName, type) => {
);
}
- const timeAgoArray = ["ExecutedTime", "ScheduledTime"];
+ const timeAgoArray = ["ExecutedTime", "ScheduledTime", "Timestamp"];
if (timeAgoArray.includes(cellName)) {
- //convert data from unixtime to date. If conversion fails, return "No Data".
- const date = new Date(data * 1000);
- if (isNaN(date)) {
+ // Convert data from Unix time to date. If conversion fails, return "No Data".
+ const date = typeof data === "number" ? new Date(data * 1000) : new Date(data);
+ if (isNaN(date.getTime())) {
return isText ? (
"No Data"
) : (