Skip to content

Commit d8e132c

Browse files
committed
fix: use ISO datetime strings in logs
1 parent f459e2b commit d8e132c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/handlers/points.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const createScore = async function(prisma: PrismaClient, type: CodamCoali
6060
}
6161
const coalitionUser = user.coalition_users[0];
6262

63-
console.log(`Creating score for user ${userId} in coalition ${coalitionUser.coalition_id} with ${points} points for reason "${reason}" (connected to Intra object ${typeIntraId} for fixed type ${(type ? type.type : "null")}), at score creation date ${scoreDate}...`);
63+
console.log(`Creating score for user ${userId} in coalition ${coalitionUser.coalition_id} with ${points} points for reason "${reason}" (connected to Intra object ${typeIntraId} for fixed type ${(type ? type.type : "null")}), at score creation date ${scoreDate.toISOString()}...`);
6464
const score = await prisma.codamCoalitionScore.create({
6565
data: {
6666
amount: points,

src/routes/admin/points.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ export const setupAdminPointsRoutes = function(app: Express, prisma: PrismaClien
865865
await shiftScore(prisma, score.id, blocDeadline.begin_at);
866866
}
867867

868-
console.log(`User ${user.login} has shifted ${scoresToShift.length} scores to the start of season ${seasonId} - ${blocDeadline.begin_at.toLocaleString()}`);
868+
console.log(`User ${user.login} has shifted ${scoresToShift.length} scores to the start of season ${seasonId} - ${blocDeadline.begin_at.toISOString()}`);
869869

870870
// Done, redirect back to the form
871871
return res.redirect('/admin/points/shift');

0 commit comments

Comments
 (0)