We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f33b00 commit 84ef1daCopy full SHA for 84ef1da
src/utils/luxon.js
@@ -1,5 +1,9 @@
1
import { DateTime } from "luxon"
2
3
export const getLocaleTimestamp = (locale, timestamp) => {
4
- return DateTime.local().setLocale(locale).toFormat("MMM dd, yyyy")
+ let timeLastUpdate = DateTime.local(timestamp).ts
5
+
6
+ return DateTime.fromMillis(timeLastUpdate)
7
+ .setLocale(locale)
8
+ .toFormat("MMM dd, yyyy")
9
}
0 commit comments