fix: dates are hard

This commit is contained in:
Cory Dransfeldt 2024-05-13 17:52:08 -07:00
parent 9332b5ab2a
commit eccf1027b8
No known key found for this signature in database
2 changed files with 10 additions and 4 deletions

View file

@ -141,7 +141,6 @@ export default {
// feeds
normalizeEntries: (entries) => {
const posts = []
if (!entries) return posts
entries.forEach((entry) => {
const dateKey = Object.keys(entry).find((key) => key.includes('date'))
const date = new Date(entry[dateKey])