diff --git a/client/src/components/notification-center/notification-center.component.jsx b/client/src/components/notification-center/notification-center.component.jsx index e388db84e..a314260fc 100644 --- a/client/src/components/notification-center/notification-center.component.jsx +++ b/client/src/components/notification-center/notification-center.component.jsx @@ -3,6 +3,7 @@ import { Alert, Badge, Button, Checkbox, List, Typography } from "antd"; import { useTranslation } from "react-i18next"; import { Link } from "react-router-dom"; import "./notification-center.styles.scss"; +import day from "../../utils/day.js"; const { Text, Title } = Typography; @@ -49,7 +50,7 @@ const NotificationCenterComponent = ({ > RO #{notification.roNumber} - {new Date(notification.created_at).toLocaleString()} + {day(notification.created_at).fromNow()}