From 3a03d28cd9098f0ad0082fb760b07f876096e2c0 Mon Sep 17 00:00:00 2001 From: Imre Kristoffer Eilertsen Date: Sat, 6 Apr 2019 16:36:49 +0200 Subject: [PATCH] Date formatting, take 4 (#747) --- .../home/components/detailsExpander/infoCard/UpdatedDate.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 346513248..a9c468e5f 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 @@ -8,8 +8,8 @@ interface IProps { export const UpdatedDate = (props: IProps) => props.updatedDate ?
  • -

    Updated: {moment(props.updatedDate).isValid() - ? moment(props.updatedDate).format("l").toLocaleString() +

    Updated: {moment(props.updatedDate.toLocaleString()).isValid() + ? moment(props.updatedDate.toLocaleString()).format("l") : "N/A"}

  • : null;