From 10cc43918fe8d0fca2b2291b5a73fa5925d676e4 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Tue, 11 Jul 2023 10:24:00 +0200 Subject: [PATCH] Force JSON datetime format to ISO 8601 (API). --- config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/config.py b/config.py index 8ad045d8..d98e9513 100755 --- a/config.py +++ b/config.py @@ -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):