Promise and setProperties


Edit: I got it, .toDate() did the trick:

start: event.start.toDate(),
end: event.end.toDate(),

What am I doing wrong? setProperties is changing just “string” properties, below is my model, code and ember inspector output:

export default DS.Model.extend({
	title: DS.attr('string'),
	description: DS.attr('string'),
	allDay: DS.attr('boolean'),
	start: DS.attr('date'),
	end: DS.attr('date'),
	url: DS.attr('string'),
	editable: DS.attr('boolean'),
	color: DS.attr('number'),
	resourceID: DS.attr('number'),
	clientID: DS.attr('number')


  eventPromise.then(fulfill, reject);

  function fulfill(answer) {

      title: event.title,
      description: "This is description",
      allDay: event.allDay,
      start: "2015-3-19 12:35",
      end: event.end,
      url: event.url,
      editable: event.editable,
      color: 1,
      resourceID: 1,
      clientID: 1,


ember inspector:
_data: Object
allDay: false
clientID: null
color: null
description: "This is description"
editable: false
end: Tue Jan 01 1901 01:00:00 GMT+0100 (Central European Standard Time)
id: 2
resourceID: null
start: Tue Jan 01 1901 01:00:00 GMT+0100 (Central European Standard Time)
title: "BLA BLA"
url: null