Skip to content

Commit eeaf05a

Browse files
committed
add: RFC2822 Date on moment #1203
1 parent 8f15bcf commit eeaf05a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/moment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ import moment from "moment"
22

33
export const getLocaleTimestamp = (locale, timestamp) => {
44
moment.locale(locale)
5-
return moment(timestamp).format("MMM DD, YYYY")
5+
return moment(timestamp, ["ll", "YYYY"]).format("ll")
66
}

0 commit comments

Comments
 (0)