diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/UpdatedDate.tsx b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/UpdatedDate.tsx index 5f8d51d4f..7e72853f0 100644 --- a/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/UpdatedDate.tsx +++ b/src/FilterLists.Web/ClientApp/modules/home/components/detailsExpander/infoCard/UpdatedDate.tsx @@ -1,4 +1,5 @@ import * as React from "react"; +import * as moment from "moment"; interface IProps { updatedDate: string; @@ -7,6 +8,8 @@ interface IProps { export const UpdatedDate = (props: IProps) => props.updatedDate ?
Updated: {props.updatedDate.toLocaleString()}
+Updated: {moment(props.updatedDate).isValid() + ? moment(props.updatedDate).format("l") + : "N/A"}