how can I tell ember-data to send the value of date attr as timestamp? currently it will be sent over RESTAdapter as string in this format "Mon, 22 Apr 2013 22:00:00 GMT" and my backend (Play-framework with jackson) doesn't want to recognize it
Asked
Active
Viewed 4,115 times
1
-
4possible duplicate: http://stackoverflow.com/questions/15695809/what-is-the-best-way-to-modify-the-date-format-when-ember-data-does-serializatio – CraigTeegarden Apr 23 '13 at 15:03
-
thanks. it's the same – Misha Apr 23 '13 at 15:12
-
I found that I had to define a custom type as the default serialization of attr('date') wasn't friendly with my django backend (in the dup mentioned above) – Toran Billups Apr 23 '13 at 18:27
-
I'm curious, what kind of custom type did you define? I may have the same kind of issue. – Cécile Fecherolle Sep 23 '16 at 15:15
-
Possible duplicate of [What is the best way to modify the date format when ember-data does serialization?](https://stackoverflow.com/questions/15695809/what-is-the-best-way-to-modify-the-date-format-when-ember-data-does-serializatio) – Richard Domingo Dec 14 '17 at 01:49