Include timezone in Alert timestamps.
Description:
Dates are coming in the format:
2018-06-26T20:25:01.047529
This is missing the timezone information. Use the DateSerializer in the
Alert resource to fix this.
from collections import defaultdict
-from chroma_api.utils import SeverityResource
+from chroma_api.utils import SeverityResource, DateSerializer
from django.contrib.contenttypes.models import ContentType
from chroma_core.models.alert import AlertState
@@ -250,6 +250,7 @@ class AlertResource(LongPollingAPI, SeverityResource):
'record_type': SeverityResource.ALL_FILTER_ENUMERATION}
ordering = ['begin', 'end', 'active']
+ serializer = DateSerializer()
authorization = DjangoAuthorization()
authentication = AnonymousAuthentication()
list_allowed_methods = ['get']
