Skip to content

Commit

Permalink
datetime fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
terrerox committed Dec 24, 2022
1 parent f0798aa commit 04802d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/helpers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

1 comment on commit 04802d6

@vercel
Copy link

@vercel vercel bot commented on 04802d6 Dec 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.