Fix until with args changes

master
Bel LaPointe 2020-02-17 15:09:11 -07:00
parent aee3922767
commit e5a21a6063
1 changed files with 1 additions and 1 deletions

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
}