You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe I'm wrong but if the value of the second parameter passed to moment-format is a falsy value, I'd expect the date to be displayed in the default format.
Maybe I'm wrong but if the value of the second parameter passed to
moment-format
is a falsy value, I'd expect the date to be displayed in the default format.That's currently not the case as the code checks the number of parameters passed explicitly and only uses
moment.outputFormat
(the default format set in the configuration):https://github.com/stefanpenner/ember-moment/blob/v7.7.0/addon/helpers/moment-format.js#L28-L35
If it worked as I describe, the following:
could be written as:
Is this the intended behavior or can we get the default format in the case I described?
The text was updated successfully, but these errors were encountered: