From a565a604e80f480d3e67ebd8bf97a95e4fcc8a79 Mon Sep 17 00:00:00 2001 From: Hamcha Date: Fri, 2 Nov 2018 14:26:40 +0100 Subject: [PATCH] Fix this later --- mods/remind.go | 4 ++++ 1 file changed, 4 insertions(+) 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) {