This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git


The following commit(s) were added to refs/heads/develop by this push:
     new d56604c7 AIRAVATA-3677 For the sake of consistency, always include 
microseconds in ISO8601 dates
d56604c7 is described below

commit d56604c77cb25f38ff3ad5a46bb22a74fb21c42b
Author: Marcus Christie <[email protected]>
AuthorDate: Mon Dec 5 15:44:02 2022 -0500

    AIRAVATA-3677 For the sake of consistency, always include microseconds in 
ISO8601 dates
---
 django_airavata/settings.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/django_airavata/settings.py b/django_airavata/settings.py
index 0f2152b8..01c6b144 100644
--- a/django_airavata/settings.py
+++ b/django_airavata/settings.py
@@ -218,6 +218,9 @@ REST_FRAMEWORK = {
     'EXCEPTION_HANDLER':
         'django_airavata.apps.api.exceptions.custom_exception_handler',
     'TEST_REQUEST_DEFAULT_FORMAT': 'json',
+    # Force inclusion of fractional seconds (default formatting with
+    # datetime.isoformat only includes fractional seconds if non-zero)
+    'DATETIME_FORMAT': "%Y-%m-%dT%H:%M:%S.%fZ",
 }
 
 AUTHENTICATION_BACKENDS = [

Reply via email to