use timestamp data

This commit is contained in:
srgooglo 2022-11-02 17:58:50 +00:00
parent 90fdfdd470
commit d0600ae25c

View File

@ -15,7 +15,7 @@ export default (props) => {
}
const updateTimeAgo = () => {
let createdAt = props.postData.created_at ?? ""
let createdAt = props.postData.timestamp ?? props.postData.created_at ?? ""
const timeAgo = DateTime.fromISO(createdAt).toRelative()