1
0
forked from ScoDoc/ScoDoc

Force JSON datetime format to ISO 8601 (API).

This commit is contained in:
Emmanuel Viennet 2023-07-11 10:24:00 +02:00
parent 31b280ec82
commit 10cc43918f

View File

@ -41,6 +41,7 @@ class Config:
# flask_json:
JSON_ADD_STATUS = False
JSON_USE_ENCODE_METHODS = True
JSON_DATETIME_FORMAT = "%Y-%m-%dT%H:%M:%S%z" # "%Y-%m-%dT%H:%M:%S"
class ProdConfig(Config):