chore: date formatting

This commit is contained in:
Cory Dransfeldt 2023-06-08 14:15:31 -07:00
parent d2a143f28f
commit b2f2155682
No known key found for this signature in database
5 changed files with 8 additions and 4 deletions

View file

@ -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()
},