diff --git a/src/js/components/SideBar/SideBarTabOptionsDate.vue b/src/js/components/SideBar/SideBarTabOptionsDate.vue
index a36233d82..f1c72f221 100644
--- a/src/js/components/SideBar/SideBarTabOptionsDate.vue
+++ b/src/js/components/SideBar/SideBarTabOptionsDate.vue
@@ -40,7 +40,7 @@
@@ -91,7 +91,14 @@ export default {
move: {
step: 1,
unit: 'week',
- units: ['minute', 'hour', 'day', 'week', 'month', 'year']
+ units: [
+ { name: t('polls', 'Minute'), value: 'minute' },
+ { name: t('polls', 'Hour'), value: 'hour' },
+ { name: t('polls', 'Day'), value: 'day' },
+ { name: t('polls', 'Week'), value: 'week' },
+ { name: t('polls', 'Month'), value: 'month' },
+ { name: t('polls', 'Year'), value: 'year' }
+ ]
}
}
},
@@ -154,7 +161,7 @@ export default {
const store = this.$store
this.options.list.forEach(function(existingOption) {
const option = Object.assign({}, existingOption)
- option.pollOptionText = moment(option.pollOptionText).add(payload.step, payload.unit).format('YYYY-MM-DD HH:mm:ss')
+ option.pollOptionText = moment(option.pollOptionText).add(payload.step, payload.unit.value).format('YYYY-MM-DD HH:mm:ss')
option.timestamp = moment.utc(option.pollOptionText).unix()
store.dispatch('updateOptionAsync', { option: option })
})