mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
Merge pull request #76 from ragestudio/fixed-post-timestampts
use timestamp data
This commit is contained in:
commit
22143e33ac
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user