diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-03-20 18:00:42 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-03-20 18:00:42 +0900 |
| commit | 933638d0355670eb7e178d4cbdecbae82b48b2ed (patch) | |
| tree | d5b31491a825c4743d9944ba04c42bf7c69ca1d9 /src/client/components | |
| parent | Add range component, 音量設定で使用する (#6146) (diff) | |
| download | sharkey-933638d0355670eb7e178d4cbdecbae82b48b2ed.tar.gz sharkey-933638d0355670eb7e178d4cbdecbae82b48b2ed.tar.bz2 sharkey-933638d0355670eb7e178d4cbdecbae82b48b2ed.zip | |
Fix bug
Diffstat (limited to 'src/client/components')
| -rw-r--r-- | src/client/components/poll-editor.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/components/poll-editor.vue b/src/client/components/poll-editor.vue index b5b8c2c02d..91c7dab598 100644 --- a/src/client/components/poll-editor.vue +++ b/src/client/components/poll-editor.vue @@ -53,7 +53,7 @@ import Vue from 'vue'; import { faExclamationTriangle, faTimes } from '@fortawesome/free-solid-svg-icons'; import i18n from '../i18n'; import { erase } from '../../prelude/array'; -import { addTimespan } from '../../prelude/time'; +import { addTime } from '../../prelude/time'; import { formatDateTimeString } from '../../misc/format-time-string'; import MkInput from './ui/input.vue'; import MkSelect from './ui/select.vue'; @@ -73,7 +73,7 @@ export default Vue.extend({ choices: ['', ''], multiple: false, expiration: 'infinite', - atDate: formatDateTimeString(addTimespan(new Date(), 1, 'days'), 'yyyy-MM-dd'), + atDate: formatDateTimeString(addTime(new Date(), 1, 'day'), 'yyyy-MM-dd'), atTime: '00:00', after: 0, unit: 'second', |