One does not simply: time

This commit is contained in:
daru
2022-07-18 20:20:38 +02:00
parent 10a563bb23
commit 2e5b45a699

View File

@@ -38,8 +38,8 @@ func Arbeit() {
} else {
cleared++
}
} else if a.Time.Add(time.Hour).Before(time.Now()) {
// This is happening soon
} else if a.Time.Before(time.Now()) && a.Time.Add(time.Hour).After(time.Now()) {
// This has not happened and is happening soon
AnnounceAppointmentSoon(&a)
}
}