From ae53046ebb782b89919dc08d17fce7ad829a75c1 Mon Sep 17 00:00:00 2001 From: Galen Guyer Date: Sun, 31 Jan 2021 18:46:34 -0500 Subject: Add two weeks ago option and show time diff --- src/App.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/App.js b/src/App.js index 6dd6d83..c4dfc7d 100644 --- a/src/App.js +++ b/src/App.js @@ -97,13 +97,14 @@ function App() { day: "2-digit", hour: "2-digit", minute: "2-digit", - })} + })}{" "} + ({timeDifference == 1 ? "one day ago" : timeDifference == 5 ? "one week ago" : "two weeks ago"})