adopted-ember-addons / ember-moment

MIT License
400 stars 122 forks source link

is-same randomly fails - really! #277

Closed medokin closed 5 years ago

medokin commented 6 years ago

Ember 2.18 ember-moment 7.7.0

{{moment-format model.beginning 'dddd DD. MMMM YYYY, HH:mm'}} Uhr -
{{#if (is-same model.beginning model.end 'day' interval=100)}}
  {{moment-format model.end 'HH:mm'}} Uhr
{{else}}
  {{moment-format model.end 'dddd DD. MMMM YYYY, HH:mm'}} Uhr
{{/if}}

2018-05-14_14-26-31

Maybe related to https://github.com/stefanpenner/ember-moment/issues/272

jasonmit commented 6 years ago

Can you write a fail test or put together a demo?

It's difficult for me to replicate this without knowing what is going on within model.{end,beginning}.