ember-django-adapter: posting date Date has wrong format. Use one of these formats instead: YYYY[-MM[-DD]]
When I save a model that has a JS date (created with new Date()) I get the error:
Date has wrong format. Use one of these formats instead: YYYY[-MM[-DD]]
The date in the post was 2015-01-05T22:08:37.838Z. So is this:
- a defect?
- something I should handle in the ember frontend, to format the date?
- something I should handle in the django api?
Appreciate any help.
Using: ember-cli 0.1.5 ember-data 1.0.0-beta.12 ember-django-adapter 0.5 django 1.7.1 djangorestframework 3.0.2 Python 3.4
About this issue
- Original URL
- State: open
- Created 9 years ago
- Comments: 16 (8 by maintainers)
I tried
new Date().toJSON().slice(0, 10), and that works. Seems a reasonable workaround.