From c35c464652e25c1827b51d16e3b66a160fcc86fa Mon Sep 17 00:00:00 2001 From: Kelvin Muchiri Date: Tue, 17 Sep 2024 18:05:39 +0300 Subject: [PATCH] refactor code --- onadata/libs/utils/common_tags.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/onadata/libs/utils/common_tags.py b/onadata/libs/utils/common_tags.py index 5c097e5960..81b5298e1a 100644 --- a/onadata/libs/utils/common_tags.py +++ b/onadata/libs/utils/common_tags.py @@ -71,7 +71,8 @@ # datetime format that we store in mongo MONGO_STRFTIME = "%Y-%m-%dT%H:%M:%S" DATE_FORMAT = "%Y-%m-%d" -KNOWN_DATE_FORMATS = [MONGO_STRFTIME, DATE_FORMAT, "%Y-%m-%dT%H:%M:%S.%f%z"] +ISO_FORMAT = "%Y-%m-%dT%H:%M:%S.%f%z" +KNOWN_DATE_FORMATS = [MONGO_STRFTIME, DATE_FORMAT, ISO_FORMAT] # how to represent N/A in exports NA_REP = "n/a"