toranb / ember-data-django-rest-adapter

An ember-data adapter for django web applications powered by the django-rest-framework
MIT License
152 stars 26 forks source link

Date and Datetime transforms #96

Closed dustinfarris closed 10 years ago

dustinfarris commented 10 years ago

These two transforms allow the user to use date and datetime types in their models.

App.MyModel = DS.Model.extend({
  birthday: DS.attr('date'),
  nextMeeting: DS.attr('datetime')
});

The integration tests are potentially problematic since the JS Date object is time-zone aware—tests may fail when run in timezones other than eastern. I will address this in a future PR.

dustinfarris commented 10 years ago

Travis is failing.. guess I'll have to clear out those timezone issues sooner than I thought.