From 61955d2aa1425a621905e12c80853883faefb542 Mon Sep 17 00:00:00 2001 From: Jeff Wong Date: Mon, 2 Jul 2018 16:50:15 -0700 Subject: [PATCH] FIX: only change to time format when dealing with today's time --- .../components/discourse-local-dates-create-form.js.es6 | 1 + 1 file changed, 1 insertion(+) 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 75170bb847c..a32bf287cfd 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 @@ -141,6 +141,7 @@ export default Ember.Component.extend({ if ( time && toTime && + date === moment().format(this.dateFormat) && date === toDate && this.get("formats").includes(format) ) {