Skip to content

Commit ab6aeb9

Browse files
committed
fix: Timer triggered selector
1 parent 068efcb commit ab6aeb9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ui/src/views/trigger/component/TriggerDrawer.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -487,15 +487,15 @@ const times = Array.from({ length: 24 }, (_, i) => {
487487
return { label: time, value: time }
488488
})
489489
const days = Array.from({ length: 31 }, (_, i) => {
490-
const day = i.toString() + t('views.trigger.triggerCycle.days')
490+
const day = (i + 1).toString() + t('views.trigger.triggerCycle.days')
491491
return { label: day, value: i.toString(), children: times }
492492
})
493493
const hours = Array.from({ length: 24 }, (_, i) => {
494-
const time = i.toString().padStart(2, '0')
494+
const time = (i + 1).toString().padStart(2, '0')
495495
return { label: time, value: i }
496496
})
497497
const minutes = Array.from({ length: 60 }, (_, i) => {
498-
const time = i.toString().padStart(2, '0')
498+
const time = (i + 1).toString().padStart(2, '0')
499499
return { label: time, value: i }
500500
})
501501

0 commit comments

Comments
 (0)