Timeline for Employee Attendance structure design
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 23, 2023 at 9:56 | comment | added | Andrius | because all users are in the same country I don't need to save local time and instead of that DateTime.UtcNow is used | |
Jun 21, 2023 at 8:32 | answer | added | Morten Bork | timeline score: 6 | |
Jun 20, 2023 at 15:19 | comment | added | Peter Csala |
Is there any reason why do you DateTime instead of DateTimeOffset ? Which .NET and C# versions are you using?
|
|
Jun 20, 2023 at 13:05 | comment | added | Andrius | If employee works two days basically two attendances will be generated. First one attendance will be from 10:00pm to next day 00:00am and the other attendance from 00:00am to 5:00am (let's say) | |
Jun 20, 2023 at 12:55 | comment | added | Radu Hatos | What would happen when the employee works on the night shift and starts working at 10:00 pm and ends on the next day? EndsAt = day.AddHours(interval.EndsAt.Hours) -> does not cover that. I think you should consider using EndsAt = StartsAt.AddHours(interval.TotalHours()). | |
S Jun 20, 2023 at 11:45 | review | First questions | |||
Jun 20, 2023 at 12:09 | |||||
S Jun 20, 2023 at 11:45 | history | asked | Andrius | CC BY-SA 4.0 |