diff --git a/src/CAREUI/display/RecordMeta.tsx b/src/CAREUI/display/RecordMeta.tsx index dd14ccd2a26..83928f1f23a 100644 --- a/src/CAREUI/display/RecordMeta.tsx +++ b/src/CAREUI/display/RecordMeta.tsx @@ -23,7 +23,7 @@ const RecordMeta = ({ time, user, prefix, className }: Props) => { let child = (
{relativeTime(time)} - + {formatDateTime(time)} {user && ( <> diff --git a/src/Components/Notifications/NoticeBoard.tsx b/src/Components/Notifications/NoticeBoard.tsx index 1c6fd486d49..7fd16efb3cf 100644 --- a/src/Components/Notifications/NoticeBoard.tsx +++ b/src/Components/Notifications/NoticeBoard.tsx @@ -7,7 +7,7 @@ import { formatDateTime } from "../../Utils/utils"; import { useTranslation } from "react-i18next"; import CareIcon from "../../CAREUI/icons/CareIcon"; -export const NoticeBoard: any = () => { +export const NoticeBoard = () => { const dispatch: any = useDispatch(); const [isLoading, setIsLoading] = useState(true); const [data, setData] = useState([]); @@ -16,7 +16,10 @@ export const NoticeBoard: any = () => { useEffect(() => { setIsLoading(true); dispatch( - getNotifications({ offset: 0, event: "MESSAGE", medium_sent: "SYSTEM" }) + getNotifications( + { offset: 0, event: "MESSAGE", medium_sent: "SYSTEM" }, + new Date().getTime().toString() + ) ) .then((res: any) => { if (res && res.data) { diff --git a/src/Redux/actions.tsx b/src/Redux/actions.tsx index e00fd33bec6..0ea1270f741 100644 --- a/src/Redux/actions.tsx +++ b/src/Redux/actions.tsx @@ -684,8 +684,8 @@ export const partialUpdateExternalResult = (id: number, params: object) => { }; // Notifications -export const getNotifications = (params: object) => { - return fireRequest("getNotifications", [], params); +export const getNotifications = (params: object, altKey?: string) => { + return fireRequest("getNotifications", [], params, {}, altKey); }; export const getNotificationData = (pathParam: object) => {