From cc1e5ba24e065695305f457be447a9f29195c631 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 14 Oct 2019 19:29:18 +0200 Subject: [PATCH] Better handle datetime Signed-off-by: Thomas Citharel --- js/src/components/Event/DateTimePicker.vue | 59 ++++++++++--------- js/src/components/Event/EventFullDate.vue | 25 +++++++- js/src/filters/datetime.ts | 9 ++- js/src/graphql/event.ts | 2 + js/src/i18n/en_US.json | 12 ++++ js/src/i18n/fr_FR.json | 12 ++++ js/src/types/event.model.ts | 4 ++ js/src/views/Event/Edit.vue | 46 +++++++++++++-- js/src/views/Event/Event.vue | 2 +- lib/mobilizon/events/event_options.ex | 10 +++- lib/mobilizon_web/schema/event.ex | 6 ++ .../templates/email/event_updated.html.eex | 2 +- .../templates/email/event_updated.text.eex | 2 +- lib/service/activity_pub/converter/event.ex | 2 +- lib/service/activity_pub/utils.ex | 2 +- schema.graphql | 14 ++++- .../resolvers/event_resolver_test.exs | 7 ++- 17 files changed, 168 insertions(+), 48 deletions(-) diff --git a/js/src/components/Event/DateTimePicker.vue b/js/src/components/Event/DateTimePicker.vue index 8fd28b1af..b9fac5814 100644 --- a/js/src/components/Event/DateTimePicker.vue +++ b/js/src/components/Event/DateTimePicker.vue @@ -19,11 +19,18 @@ expanded :first-day-of-week="parseInt($t('firstDayOfWeek'), 10)" :min-date="minDate" - v-model="date" + v-model="dateWithoutTime" :placeholder="$t('Click to select')" icon="calendar" /> - + + + + \ No newline at end of file diff --git a/js/src/components/Event/EventFullDate.vue b/js/src/components/Event/EventFullDate.vue index 15bc0f47d..8d6e1bb33 100644 --- a/js/src/components/Event/EventFullDate.vue +++ b/js/src/components/Event/EventFullDate.vue @@ -18,14 +18,31 @@