mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 19:14:16 +00:00
use timestamp data
This commit is contained in:
parent
90fdfdd470
commit
d0600ae25c
@ -15,7 +15,7 @@ export default (props) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const updateTimeAgo = () => {
|
const updateTimeAgo = () => {
|
||||||
let createdAt = props.postData.created_at ?? ""
|
let createdAt = props.postData.timestamp ?? props.postData.created_at ?? ""
|
||||||
|
|
||||||
const timeAgo = DateTime.fromISO(createdAt).toRelative()
|
const timeAgo = DateTime.fromISO(createdAt).toRelative()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user