From 7578ee7e9764af7e5f6676299a5a74f2cc4aa438 Mon Sep 17 00:00:00 2001 From: Spirtix Date: Mon, 27 Nov 2023 19:09:28 +0100 Subject: [PATCH] GetGameData: convert dates to UTC --- src/Services/GameDataService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Services/GameDataService.cs b/src/Services/GameDataService.cs index f130b8b..cd4eed2 100644 --- a/src/Services/GameDataService.cs +++ b/src/Services/GameDataService.cs @@ -39,7 +39,7 @@ public class GameDataService { IQueryable query = ctx.GameData.Where(x => x.GameId == gameId && x.IsMultiplayer == false && x.Difficulty == difficulty && x.GameLevel == gameLevel); if (startDate != null && endDate != null) - query = query.Where(x => x.DatePlayed >= startDate && x.DatePlayed <= endDate.Value.AddMinutes(2)); + query = query.Where(x => x.DatePlayed >= startDate.Value.ToUniversalTime() && x.DatePlayed <= endDate.Value.AddMinutes(2).ToUniversalTime()); var query2 = query.SelectMany(e => e.GameDataPairs) .Where(x => x.Name == key);