Skip to content

Commit

Permalink
fix month value and add use utc for datetime instead of local
Browse files Browse the repository at this point in the history
  • Loading branch information
julien4215 committed Mar 3, 2024
1 parent 04543cd commit 4dad865
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/model/user/user_repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 4dad865

Please sign in to comment.