diff --git a/mods/remind.go b/mods/remind.go index 2708492..d6bc6fd 100644 --- a/mods/remind.go +++ b/mods/remind.go @@ -170,10 +170,14 @@ func scanMixedDelay(str string) (bool, time.Time, error) { default: return true, now, fmt.Errorf("La durata ha una unità che non conosco, usa una di queste: s (secondi) m (minuti) h (ore) d (giorni)") } + return true, now.Add(dur), nil + } + /* TO FIX now = now.Add(dur) remaining = remaining[scanned:] } return true, now, nil + */ } func parseDuration(date string) (time.Time, error) {