This commit is contained in:
parent
963faa23f3
commit
6079f8228c
@ -108,7 +108,7 @@ export async function getScoreSaberPlayerFromToken(
|
||||
const date = getMidnightAlignedDate(getDaysAgoDate(daysAgo));
|
||||
daysAgo += 1; // Increment daysAgo for each earlier rank
|
||||
|
||||
statisticHistory[date.toString()] = {
|
||||
statisticHistory[formatDateMinimal(date)] = {
|
||||
rank: rank,
|
||||
};
|
||||
}
|
||||
|
@ -115,7 +115,7 @@ PlayerSchema.methods.sortStatisticHistory = function (): Map<
|
||||
Date.parse(b[0]) - Date.parse(a[0]),
|
||||
)
|
||||
// Convert the date strings back to Date objects for the resulting Map
|
||||
.map(([date, history]) => [new Date(date).toUTCString(), history]),
|
||||
.map(([date, history]) => [formatDateMinimal(new Date(date)), history]),
|
||||
);
|
||||
return this.statisticHistory;
|
||||
};
|
||||
|
Reference in New Issue
Block a user