FIX: only change to time format when dealing with today's time

This commit is contained in:
Jeff Wong 2018-07-02 16:50:15 -07:00
parent d7f6d37a98
commit 61955d2aa1
1 changed files with 1 additions and 0 deletions

View File

@ -141,6 +141,7 @@ export default Ember.Component.extend({
if (
time &&
toTime &&
date === moment().format(this.dateFormat) &&
date === toDate &&
this.get("formats").includes(format)
) {