mirror of
https://github.com/EDCD/EDDN.git
synced 2025-04-23 12:00:29 +03:00
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:
parent
81894ae0a7
commit
a925155547
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user