diff --git a/api/scrobble.js b/api/scrobble.js index 836531e4..ac2fe8f5 100644 --- a/api/scrobble.js +++ b/api/scrobble.js @@ -22,7 +22,7 @@ export default async (request) => { const artist = payload.Metadata.grandparentTitle const album = payload.Metadata.parentTitle const track = payload.Metadata.title - const listenedAt = DateTime.now().toISO() + const listenedAt = DateTime.now().toSeconds() const artistKey = sanitizeMediaString(artist).replace(/\s+/g, '-').toLowerCase() const albumKey = `${artistKey}-${sanitizeMediaString(album).replace(/\s+/g, '-').toLowerCase()}` diff --git a/package-lock.json b/package-lock.json index ea8e7d7c..c5a7810f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "coryd.dev", - "version": "14.0.2", + "version": "14.0.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "coryd.dev", - "version": "14.0.2", + "version": "14.0.4", "license": "MIT", "dependencies": { "@cdransf/api-text": "^1.2.2", diff --git a/package.json b/package.json index d5f22eb8..7f759619 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "14.0.3", + "version": "14.0.4", "description": "The source for my personal site. Built using 11ty.", "type": "module", "scripts": { diff --git a/src/_data/music.js b/src/_data/music.js index ff1fa6ed..251b3350 100644 --- a/src/_data/music.js +++ b/src/_data/music.js @@ -15,7 +15,7 @@ const fetchDataForPeriod = async (startPeriod, fields, table) => { .from(table) .select(fields) .order('listened_at', { ascending: false }) - .gte('listened_at', startPeriod.toUTC().toSeconds()) + .gte('listened_at', startPeriod.toSeconds()) .range(rangeStart, rangeStart + PAGE_SIZE - 1) if (error) { diff --git a/src/assets/img/ogi/listen-okkervil-river-the-silver-gymnasium-preview.png b/src/assets/img/ogi/listen-okkervil-river-the-silver-gymnasium-preview.png index d95c0862..e69de29b 100644 Binary files a/src/assets/img/ogi/listen-okkervil-river-the-silver-gymnasium-preview.png and b/src/assets/img/ogi/listen-okkervil-river-the-silver-gymnasium-preview.png differ