From 4dad8657f84bf4934c3c6286742e2f344c5b6327 Mon Sep 17 00:00:00 2001 From: Julien <120588494+julien4215@users.noreply.github.com> Date: Sun, 3 Mar 2024 23:23:52 +0100 Subject: [PATCH] fix month value and add use utc for datetime instead of local --- lib/src/model/user/user_repository.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/model/user/user_repository.dart b/lib/src/model/user/user_repository.dart index 2325b6bca0..bb8b38119d 100644 --- a/lib/src/model/user/user_repository.dart +++ b/lib/src/model/user/user_repository.dart @@ -96,9 +96,9 @@ UserRatingHistoryPerf _ratingHistoryFromPick( points: perf('points').asListOrThrow((point) { final values = point.asListOrThrow((point) => point.asIntOrThrow()); return UserRatingHistoryPoint( - date: DateTime( + date: DateTime.utc( values[0], - values[1], + values[1] + 1, values[2], ), elo: values[3],