diff --git a/app/api/me/timezone/route.ts b/app/api/me/timezone/route.ts index 98915bd..fc8f407 100644 --- a/app/api/me/timezone/route.ts +++ b/app/api/me/timezone/route.ts @@ -83,7 +83,7 @@ export async function PUT(request: NextRequest): Promise { try { // Authoritative write target: session.user.id. NO userId from body. const result = await postgresClient.query<{ timezone: string }>( - 'UPDATE "user" SET timezone = $1, updated_at = NOW() WHERE id = $2 RETURNING timezone', + 'UPDATE "user" SET timezone = $1, "updatedAt" = NOW() WHERE id = $2 RETURNING timezone', [candidate, session!.user.id], ); if (result.rowCount === 0) {