import { helper } from 'ember-helper';
import moment from 'moment';

/**
 * Allows you to safely pass dates you do not want ovewritten
 * to untrusted libraries.
 */
export default helper(function ([date]) {
  return moment(date).toDate();
});
