Force JSON datetime format to ISO 8601 (API).
This commit is contained in:
parent
31b280ec82
commit
10cc43918f
@ -41,6 +41,7 @@ class Config:
|
|||||||
# flask_json:
|
# flask_json:
|
||||||
JSON_ADD_STATUS = False
|
JSON_ADD_STATUS = False
|
||||||
JSON_USE_ENCODE_METHODS = True
|
JSON_USE_ENCODE_METHODS = True
|
||||||
|
JSON_DATETIME_FORMAT = "%Y-%m-%dT%H:%M:%S%z" # "%Y-%m-%dT%H:%M:%S"
|
||||||
|
|
||||||
|
|
||||||
class ProdConfig(Config):
|
class ProdConfig(Config):
|
||||||
|
Loading…
Reference in New Issue
Block a user