Skip to content

Commit

Permalink
fix: Add zero padding in front of execution time for scheduledtask
Browse files Browse the repository at this point in the history
  • Loading branch information
rainzm committed Jun 11, 2020
1 parent e49c11e commit 0dad835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/compute/models/scheduled_tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func (st *SScheduledTask) TimerDescription() string {
}
prefix = fmt.Sprintf("每月 【%s】", strings.Join(monthDays, "|"))
}
return fmt.Sprintf("%s %2d:%2d触发 有效时间为%s至%s", prefix, timer.Hour, timer.Minute, timer.StartTime.In(zone).Format(format), timer.EndTime.In(zone).Format(format))
return fmt.Sprintf("%s %02d:%02d触发 有效时间为%s至%s", prefix, timer.Hour, timer.Minute, timer.StartTime.In(zone).Format(format), timer.EndTime.In(zone).Format(format))
}

func (st *SScheduledTask) AllowPerformEnable(ctx context.Context, userCred mcclient.TokenCredential,
Expand Down

0 comments on commit 0dad835

Please sign in to comment.