toranb / ember-data-django-rest-adapter

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

Avoid adjusting dates due to local timezone #102

Closed dustinfarris closed 10 years ago

dustinfarris commented 10 years ago

It seems that Date.toISOString applies a transformation to the Date object based on the user's local timezone. This can often lead to unwanted data alterations when a date is serialized. See #100.

/cc @benkonrath

benkonrath commented 10 years ago

Yep, this fixes the problem. Thanks!

benkonrath commented 10 years ago

I have the same error from Travis in #101 so I'm not sure what's going on there.

dustinfarris commented 10 years ago

yeah i'm looking at that now. for some reason karma isn't running. might be related to https://github.com/toranb/ember-data-django-rest-adapter/commit/f03d057198c2994d8121e7daa4f372e85f55c3e9

dustinfarris commented 10 years ago

@benkonrath travis is fixed. feel free to rebase.