From 0c49ca7bedc80285106ef45037233b3e32632d72 Mon Sep 17 00:00:00 2001 From: glax Date: Thu, 16 Oct 2025 23:41:48 +0200 Subject: [PATCH] filter time to utc --- API/Controllers/ActionsController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/API/Controllers/ActionsController.cs b/API/Controllers/ActionsController.cs index 2aee0d5..a84f565 100644 --- a/API/Controllers/ActionsController.cs +++ b/API/Controllers/ActionsController.cs @@ -38,8 +38,8 @@ public class ActionsController(ActionsContext context) : Controller public async Task>, InternalServerError>> GetActionsInterval([FromBody]Filter filter) { if (await context.Filter(filter.MangaId, filter.ChapterId) - .Where(a => filter.Start == null || a.PerformedAt >= filter.Start) - .Where(a => filter.End == null || a.PerformedAt >= filter.End) + .Where(a => filter.Start == null || a.PerformedAt >= filter.Start.Value.ToUniversalTime()) + .Where(a => filter.End == null || a.PerformedAt >= filter.End.Value.ToUniversalTime()) .Where(a => filter.Action == null || a.Action == filter.Action) .ToListAsync(HttpContext.RequestAborted) is not { } actions) return TypedResults.InternalServerError();