From 3722f803376bca90b8180ad31b622a0b13c0b47a Mon Sep 17 00:00:00 2001 From: Collin Barrett Date: Wed, 22 Aug 2018 17:28:26 -0500 Subject: [PATCH] use shorter, localized date format --- src/FilterLists.Web/ClientApp/components/Home.tsx | 2 +- src/FilterLists.Web/ClientApp/components/ListDetails.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/FilterLists.Web/ClientApp/components/Home.tsx b/src/FilterLists.Web/ClientApp/components/Home.tsx index 2ff5448c5..231456b78 100644 --- a/src/FilterLists.Web/ClientApp/components/Home.tsx +++ b/src/FilterLists.Web/ClientApp/components/Home.tsx @@ -141,7 +141,7 @@ export class Home extends React.Component, IHomeState> { ? (moment(b).isValid() ? (moment(a).isBefore(b) ? -1 : 1) : 1) : -1, Cell: (cell: any) =>
{moment(cell.value).isValid() - ? moment(cell.value).format(moment.HTML5_FMT.DATE) + ? moment(cell.value).format("l") : "N/A"}
, style: { whiteSpace: "inherit" }, width: 100, diff --git a/src/FilterLists.Web/ClientApp/components/ListDetails.tsx b/src/FilterLists.Web/ClientApp/components/ListDetails.tsx index 01ffd851f..2b4a962e7 100644 --- a/src/FilterLists.Web/ClientApp/components/ListDetails.tsx +++ b/src/FilterLists.Web/ClientApp/components/ListDetails.tsx @@ -114,7 +114,7 @@ function RuleCount(props: any) { function DiscontinuedDate(props: any) { return props.date ?
  • -

    Discontinued: {moment(props.date).format("MMM D, Y")}

    +

    Discontinued: {moment(props.date).format("l")}

  • : null; } @@ -122,7 +122,7 @@ function DiscontinuedDate(props: any) { function UpdatedDate(props: any) { return props.date ?
  • -

    Last Updated by Maintainer: {moment(props.date).format("MMM D, Y")}

    +

    Last Updated by Maintainer: {moment(props.date).format("l")}

  • : null; } @@ -130,7 +130,7 @@ function UpdatedDate(props: any) { function PublishedDate(props: any) { return props.date ?
  • -

    Published: {moment(props.date).format("MMM D, Y")}

    +

    Published: {moment(props.date).format("l")}

  • : null; }