From f1658d4b02fd8553e13fd4c22379cb252b462020 Mon Sep 17 00:00:00 2001 From: jessrey-asterisk Date: Tue, 26 Nov 2024 08:05:09 +0800 Subject: [PATCH] prettier fix --- api/Services/TimeInService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/Services/TimeInService.cs b/api/Services/TimeInService.cs index a1eff289..03160d6f 100644 --- a/api/Services/TimeInService.cs +++ b/api/Services/TimeInService.cs @@ -110,7 +110,7 @@ public async Task Update(TimeInRequest timeIn) timeEntry.EndTime = timeIn.EndTime; timeEntry.BreakStartTime = userSchedule.BreakFrom; timeEntry.BreakEndTime = userSchedule.BreakTo; - timeEntry.Date = timeIn.Date; + timeEntry.Date = DateTime.Now; context.TimeEntries.Update(timeEntry); await context.SaveChangesAsync();