mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-24 07:29:30 +01:00
core: add year when grouping by month (#3630)
This commit is contained in:
@@ -57,7 +57,7 @@ const KEY_SELECTORS = {
|
||||
abc: (item) => getFirstCharacter(item.alias || item.title),
|
||||
month: (item, groupBy, dateNow) => {
|
||||
dateNow.setTime(item[groupBy]);
|
||||
return MONTHS_FULL[dateNow.getMonth()];
|
||||
return `${MONTHS_FULL[dateNow.getMonth()]} ${dateNow.getFullYear()}`;
|
||||
},
|
||||
week: (item, groupBy) => getWeekGroupFromTimestamp(item[groupBy]),
|
||||
year: (item, groupBy, dateNow) => {
|
||||
|
||||
Reference in New Issue
Block a user