{"size": 378, "ext": "js", "max_stars_repo_path": "app/components/widget-property-date-form.js", "max_stars_repo_name": "namlook/eurekapp", "max_stars_repo_stars_event_min_datetime": "2015-03-24T02:09:13.000Z", "max_stars_repo_stars_event_max_datetime": "2015-11-05T14:17:22.000Z", "max_issues_repo_path": "app/components/widget-property-date-form.js", "max_issues_repo_name": "namlook/eurekapp", "max_issues_repo_issues_event_min_datetime": "2015-04-05T17:37:52.000Z", "max_issues_repo_issues_event_max_datetime": "2015-11-16T16:35:39.000Z", "max_forks_repo_path": "app/components/widget-property-date-form.js", "max_forks_repo_name": "namlook/eurekapp", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 3, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 25.2, "max_line_length": 72, "alphanum_fraction": 0.544973545}
/* global moment */
import Ember from 'ember';

export default Ember.Component.extend({
    value: Ember.computed('field.value', {
        get: function() {
            return moment(this.get('field.value')).format('YYYY-MM-DD');
        },
        set: function(key, value) {
            this.set('field.value', new Date(value));
            return value;
        }
    })
});
