Fix until with args changes

This commit is contained in:
Bel LaPointe
2020-02-17 15:09:11 -07:00
parent aee3922767
commit e5a21a6063

View File

@@ -49,7 +49,7 @@ func NewConfig() (Config, error) {
Until: as.Get("until").GetTime(),
}
if !config.Until.IsZero() {
if config.Until.After(time.Now()) {
config.Repeat = false
config.Duration = time.Until(config.Until) + config.Offset
}