Fix this later

This commit is contained in:
Hamcha 2018-11-02 14:26:40 +01:00
parent 0aa54ca467
commit a565a604e8
Signed by: hamcha
GPG Key ID: A40413D21021EAEE
1 changed files with 4 additions and 0 deletions

View File

@ -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) {