Skip to content

Commit

Permalink
Remove fix for UTC time. Not postgres compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
andchiind committed Mar 20, 2024
1 parent f397706 commit 3af01e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/api/Database/Models/MissionRun.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
Expand Down

0 comments on commit 3af01e0

Please sign in to comment.