I use this field:
ordered_date = serializers.DateTimeField(format="iso-8601", required=False, read_only=True)
and when I go on vacation, I get time:
"ordered_date": "2015-10-22T19:50:08"
but when I serialize the date and then send it using GCM push, it adds miliseconds ( 2015-10-22T19:53:43.777171 ), how can I fix it, I only need one format to use, and not mix with these two .
How can i fix this?
I use this for a quick ios application.
django ios django-rest-framework swift
Mirror delic
source share