From 3af01e04648fd467515138f4c7c257d8711a5219 Mon Sep 17 00:00:00 2001 From: andchiind Date: Wed, 20 Mar 2024 10:38:40 +0100 Subject: [PATCH] Remove fix for UTC time. Not postgres compatible --- backend/api/Database/Models/MissionRun.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/api/Database/Models/MissionRun.cs b/backend/api/Database/Models/MissionRun.cs index 03643ef17..d95da39b6 100644 --- a/backend/api/Database/Models/MissionRun.cs +++ b/backend/api/Database/Models/MissionRun.cs @@ -26,12 +26,12 @@ public MissionStatus Status _status = value; if (IsCompleted && EndTime is null) { - EndTime = DateTime.SpecifyKind(DateTime.UtcNow, DateTimeKind.Unspecified); + EndTime = DateTime.UtcNow; } if (_status is MissionStatus.Ongoing && StartTime is null) { - StartTime = DateTime.SpecifyKind(DateTime.UtcNow, DateTimeKind.Unspecified); + StartTime = DateTime.UtcNow; } } }