From 04802d6b8228f83c18c0ae1c2f63a29e494fe943 Mon Sep 17 00:00:00 2001 From: terrerox Date: Sat, 24 Dec 2022 17:30:58 -0400 Subject: [PATCH] datetime fixed --- src/helpers/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/helpers/index.js b/src/helpers/index.js index e2cd1ed..4b4e43d 100644 --- a/src/helpers/index.js +++ b/src/helpers/index.js @@ -30,7 +30,8 @@ const createSlug = (str) => { } export const convertTimestampToDate = (timestamp) => { - return timestamp + const date = new Date(timestamp); + return date.toLocaleString('en-US') } export const extractDataOfCaption = (caption) => {