summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/app/common/views/components/poll-editor.vue4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/client/app/common/views/components/poll-editor.vue b/src/client/app/common/views/components/poll-editor.vue
index ed1d02aa2c..f7a4d3af8c 100644
--- a/src/client/app/common/views/components/poll-editor.vue
+++ b/src/client/app/common/views/components/poll-editor.vue
@@ -89,9 +89,7 @@ export default Vue.extend({
get() {
const at = () => {
- const [date] = moment(this.atDate).toISOString().split('T');
- const [hour, minute] = this.atTime.split(':');
- return moment(`${date}T${hour}:${minute}Z`).valueOf();
+ return moment(`${this.atDate} ${this.atTime}`).valueOf();
};
const after = () => {