Add moment.js support

This commit is contained in:
Matthew Dillon 2015-03-19 09:17:09 -08:00
parent f8d75d821f
commit c886a51b7d
6 changed files with 27 additions and 6 deletions

View file

@ -1,8 +1,9 @@
import Ember from 'ember';
import { formatDate } from '../utils/date-helpers';
export default Ember.Handlebars.makeBoundHelper(function(value, options) {
export default Ember.Handlebars.makeBoundHelper(function(value, format) {
if (value == null) {
return 'N/A';
}
return value;
return formatDate(value, format);
});