Fixed inconnect image grouping with the same date but different year (#296)

This commit is contained in:
Alex
2022-07-03 18:00:56 -05:00
committed by GitHub
parent c5be7827c3
commit 633170d743
2 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ export const assetsGroupByDate = derived(assets, ($assets) => {
try {
return lodash
.chain($assets)
.groupBy((a) => moment(a.createdAt).format('ddd, MMM DD'))
.groupBy((a) => moment(a.createdAt).format('ddd, MMM DD YYYY'))
.sortBy((group) => $assets.indexOf(group[0]))
.value();
} catch (e) {