Skip to content

Commit 2d5435f

Browse files
authored
fix: Timer triggered selector (#4715)
1 parent 4269750 commit 2d5435f

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
@@ -592,15 +592,15 @@ const times = Array.from({ length: 24 }, (_, i) => {
592592
return { label: time, value: time }
593593
})
594594
const days = Array.from({ length: 31 }, (_, i) => {
595-
const day = i.toString() + t('views.trigger.triggerCycle.days')
595+
const day = (i + 1).toString() + t('views.trigger.triggerCycle.days')
596596
return { label: day, value: i.toString(), children: times }
597597
})
598598
const hours = Array.from({ length: 24 }, (_, i) => {
599-
const time = i.toString().padStart(2, '0')
599+
const time = (i + 1).toString().padStart(2, '0')
600600
return { label: time, value: i }
601601
})
602602
const minutes = Array.from({ length: 60 }, (_, i) => {
603-
const time = i.toString().padStart(2, '0')
603+
const time = (i + 1).toString().padStart(2, '0')
604604
return { label: time, value: i }
605605
})
606606

0 commit comments

Comments
 (0)