chore: date formatting
This commit is contained in:
parent
d2a143f28f
commit
b2f2155682
5 changed files with 8 additions and 4 deletions
|
@ -1,6 +1,9 @@
|
|||
const { DateTime } = require('luxon')
|
||||
|
||||
module.exports = {
|
||||
readableDate: (date) => {
|
||||
return DateTime.fromISO(date).toFormat('LLLL d, yyyy')
|
||||
},
|
||||
dateForFeed: (date) => {
|
||||
return new Date(date).toISOString()
|
||||
},
|
||||
|
|
Reference in a new issue