urish / angular-moment

Moment.JS directives for Angular.JS (timeago and more)
MIT License
2.6k stars 397 forks source link

Return null instead of current date #255

Open KerVitarLaeda opened 8 years ago

KerVitarLaeda commented 8 years ago

Perhaps should add a 'nothing' checks

if (isUndefinedOrNull(value)) return value;

in amUtcOffset and amTimezone filters Just like it has already done in other filters (amCalendar, amDifference, etc).

djuerges commented 7 years ago

+1 for this issue - when having undefined values, it is nevertheless rendered as current date, which is unexpected and certainly hard to figure out as well