diff --git a/DigitalLearningSolutions.Web/Controllers/TrackingSystem/Delegates/ViewDelegateController.cs b/DigitalLearningSolutions.Web/Controllers/TrackingSystem/Delegates/ViewDelegateController.cs index 7da38da3ee..32589d77a9 100644 --- a/DigitalLearningSolutions.Web/Controllers/TrackingSystem/Delegates/ViewDelegateController.cs +++ b/DigitalLearningSolutions.Web/Controllers/TrackingSystem/Delegates/ViewDelegateController.cs @@ -78,7 +78,7 @@ public IActionResult Index(int delegateId, string? callType) foreach (var course in delegateCourses) { course.Enrolled = (DateTime)DateHelper.GetLocalDateTime(course.Enrolled); - course.LastUpdated = (DateTime)DateHelper.GetLocalDateTime(course.LastUpdated); + course.LastUpdated = DateHelper.GetLocalDateTime(course.LastUpdated); course.Completed = course.Completed?.TimeOfDay == TimeSpan.Zero ? course.Completed : DateHelper.GetLocalDateTime(course.Completed); }