escalant3 / ember-data-tastypie-adapter

An adapter to connect django applications powered by django-tastypie with ember.js apps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

There is an issue with type date

escalant3 opened this issue · comments

It might be related with the use of an outdated ember-data

Solved updating to ember-data revision 8.

However, dates are tricky. A customized format may be present in the backed. If you need to customized reopen the transform in your application.

DS.Transforms.reopen({
  date: {
    fromData: function(serialized) {
      // Transformations and return
    }, toData: function(deserialized) {
      // Transformations and return
    }
  }  
});