From e0db57c8db9bab504d25ca5b05f9d201a8268a23 Mon Sep 17 00:00:00 2001 From: Mikayla Dobson Date: Fri, 28 Jan 2022 09:03:51 -0600 Subject: [PATCH] documentation --- src/features/posts/Post.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/features/posts/Post.js b/src/features/posts/Post.js index 5cab780..addf7c4 100644 --- a/src/features/posts/Post.js +++ b/src/features/posts/Post.js @@ -5,7 +5,7 @@ export default function Post({title,author,subreddit,ups,comments,time,key,media const limit = 300; const [body, setBody] = useState(selftext); - const postDate = new Date(time * 1000); + const postDate = new Date(time * 1000); // handles conversion from unix timestamp to local time and date strings const localTime = postDate.toLocaleTimeString(); const localDate = postDate.toLocaleDateString(); @@ -47,7 +47,4 @@ export default function Post({title,author,subreddit,ups,comments,time,key,media ); -} - -// 1643381811730 -// 1643381153 \ No newline at end of file +} \ No newline at end of file