Skip to content

Commit 84ef1da

Browse files
committed
read time for last updates
1 parent 5f33b00 commit 84ef1da

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/utils/luxon.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import { DateTime } from "luxon"
22

33
export const getLocaleTimestamp = (locale, timestamp) => {
4-
return DateTime.local().setLocale(locale).toFormat("MMM dd, yyyy")
4+
let timeLastUpdate = DateTime.local(timestamp).ts
5+
6+
return DateTime.fromMillis(timeLastUpdate)
7+
.setLocale(locale)
8+
.toFormat("MMM dd, yyyy")
59
}

0 commit comments

Comments
 (0)