From 3aba5b34150c035e9539398ba978a53c6a9a4828 Mon Sep 17 00:00:00 2001 From: kovacspe Date: Sun, 12 Nov 2023 00:51:37 +0100 Subject: [PATCH 1/2] Change ti ISO date time format --- webstrom/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webstrom/settings.py b/webstrom/settings.py index 9d6c95af..d5056633 100644 --- a/webstrom/settings.py +++ b/webstrom/settings.py @@ -109,7 +109,7 @@ 'DEFAULT_AUTHENTICATION_CLASSES': ( 'rest_framework.authentication.SessionAuthentication', ), - 'DATETIME_FORMAT': "%d.%m.%Y %H:%M:%S", + 'DATETIME_FORMAT': "%Y-%m-%dT%H:%M:%S.%fZ", 'DEFAULT_SCHEMA_CLASS': 'rest_framework.schemas.coreapi.AutoSchema' } From 97c58368c73f1c68ea08db26dfcea8d7fbb433a8 Mon Sep 17 00:00:00 2001 From: rtrembecky Date: Sun, 12 Nov 2023 10:59:01 +0100 Subject: [PATCH 2/2] remove explicit date format --- webstrom/settings.py | 1 - 1 file changed, 1 deletion(-) diff --git a/webstrom/settings.py b/webstrom/settings.py index d5056633..1ffca093 100644 --- a/webstrom/settings.py +++ b/webstrom/settings.py @@ -109,7 +109,6 @@ 'DEFAULT_AUTHENTICATION_CLASSES': ( 'rest_framework.authentication.SessionAuthentication', ), - 'DATETIME_FORMAT': "%Y-%m-%dT%H:%M:%S.%fZ", 'DEFAULT_SCHEMA_CLASS': 'rest_framework.schemas.coreapi.AutoSchema' }