From 98adb8dbffca3e7d3d755449535027fded8e4832 Mon Sep 17 00:00:00 2001 From: natjms Date: Fri, 14 May 2021 14:38:01 -0300 Subject: [PATCH] Fix issue with rendering timestamps --- src/components/posts/post.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/posts/post.js b/src/components/posts/post.js index 2b91a1c..e737393 100644 --- a/src/components/posts/post.js +++ b/src/components/posts/post.js @@ -131,7 +131,7 @@ export const RawPostJsx = (props) => { - { timeToAge((new Date()).getTime(), props.data.created_at) } + { timeToAge(Date.now(), (new Date(props.data.created_at)).getTime()) } @@ -220,7 +220,7 @@ const styles = { color: "#666", }, captionDate: { - fontSize: 0.8, + fontSize: 12, color: "#666", paddingTop: 10 },