fix: calc worktime, when nothing is set
Some checks failed
Tests / Run Go Tests (push) Failing after 1m32s
Some checks failed
Tests / Run Go Tests (push) Failing after 1m32s
This commit is contained in:
@@ -16,10 +16,10 @@ func CatchError[T any](val T, err error) T {
|
||||
}
|
||||
|
||||
var testWorkDay = models.WorkDay{
|
||||
Day: CatchError(time.Parse(time.DateOnly, "2025-01-01")),
|
||||
Day: time.Date(2025, 01, 01, 0, 0, 0, 0, time.Local),
|
||||
Bookings: testBookings8hrs,
|
||||
TimeFrom: CatchError(time.Parse("2006-01-02 15:04", "2025-01-01 08:00")),
|
||||
TimeTo: CatchError(time.Parse("2006-01-02 15:04", "2025-01-01 16:30")),
|
||||
TimeFrom: time.Date(2025, 01, 01, 8, 0, 0, 0, time.Local),
|
||||
TimeTo: time.Date(2025, 01, 01, 16, 30, 0, 0, time.Local),
|
||||
}
|
||||
|
||||
func TestWorkdayWorktimeDay(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user