From 42b2bfe262e451288251de731e9df16cd6ed80f0 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Mon, 28 May 2018 11:05:37 +0200 Subject: [PATCH] FIX: adds quotes around format when creating a local date --- .../components/discourse-local-dates-create-form.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/discourse-local-dates/assets/javascripts/discourse/components/discourse-local-dates-create-form.js.es6 b/plugins/discourse-local-dates/assets/javascripts/discourse/components/discourse-local-dates-create-form.js.es6 index 9cb7bf5ac1d..8f0729360b4 100644 --- a/plugins/discourse-local-dates/assets/javascripts/discourse/components/discourse-local-dates-create-form.js.es6 +++ b/plugins/discourse-local-dates/assets/javascripts/discourse/components/discourse-local-dates-create-form.js.es6 @@ -76,7 +76,7 @@ export default Ember.Component.extend({ let text = `[date=${config.date} `; if (config.recurring) text += `recurring=${config.recurring} `; text += `time=${config.time} `; - text += `format=${config.format} `; + text += `format="${config.format}" `; text += `timezones="${config.timezones.join("|")}"`; text += `]`; return text;