diff --git a/mods/remind.go b/mods/remind.go index f7ea2ca..4a76ec1 100644 --- a/mods/remind.go +++ b/mods/remind.go @@ -154,7 +154,7 @@ func parseDuration(date string) (time.Time, error) { switch { case isSscanfValid(fmt.Sscanf(date, "%d/%d/%d-%d:%d:%d", &day, &month, &year, &hour, &min, &sec)): case isSscanfValid(fmt.Sscanf(date, "%d/%d/%d-%d:%d", &day, &month, &year, &hour, &min)): - sec = now.Second() + sec = 0 case isSscanfValid(fmt.Sscanf(date, "%d/%d/%d", &day, &month, &year)): hour = now.Hour() min = now.Minute() @@ -167,7 +167,7 @@ func parseDuration(date string) (time.Time, error) { day = now.Day() month = now.Month() year = now.Year() - sec = now.Second() + sec = 0 case isSscanfValid(fmt.Sscanf(date, "%d%c", &num, &sep)): dur := time.Duration(num) switch unicode.ToLower(sep) {