Make gatewayTimestamp strictly conformant.

http://json-schema.org/latest/json-schema-validation.html#anchor108
RCF3339: http://tools.ietf.org/html/rfc3339#section-5.6
This commit is contained in:
Jonathan Harris 2016-01-22 17:11:54 +00:00
parent 81894ae0a7
commit a925155547

View File

@ -139,7 +139,7 @@ def parse_and_error_handle(data):
validationResults = validator.validate(parsed_message)
if validationResults.severity <= ValidationSeverity.WARN:
parsed_message['header']['gatewayTimestamp'] = datetime.utcnow().isoformat()
parsed_message['header']['gatewayTimestamp'] = datetime.utcnow().isoformat() + 'Z'
ip_hash_salt = Settings.GATEWAY_IP_KEY_SALT
if ip_hash_salt: