From 563f71859709c478977fc62a6d51140209a573ef Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Fri, 5 Oct 2018 10:27:33 +0100 Subject: [PATCH] Fix contact's birthday and anniversary date presentation. --- src/components/Contact.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Contact.tsx b/src/components/Contact.tsx index 11cf674..221230b 100644 --- a/src/components/Contact.tsx +++ b/src/components/Contact.tsx @@ -94,7 +94,7 @@ class Contact extends React.PureComponent { leftIcon: }, undefined, - ((x) => moment(x).format('dddd, LL')), + ((x: any) => moment(x.toJSDate()).format('dddd, LL')), () => 'Birthday', )); @@ -104,7 +104,7 @@ class Contact extends React.PureComponent { leftIcon: }, undefined, - ((x) => moment(x).format('dddd, LL')), + ((x: any) => moment(x.toJSDate()).format('dddd, LL')), () => 'Anniversary', ));