From 4550d3a5ce056d7def0131b0e505490e90946d23 Mon Sep 17 00:00:00 2001 From: Pelle Koster Date: Tue, 26 Nov 2024 10:52:26 +0100 Subject: [PATCH] add link to relevant django docs --- src/argus_htmx/dateformat/constants.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/argus_htmx/dateformat/constants.py b/src/argus_htmx/dateformat/constants.py index 00f5933f..18d33b7c 100644 --- a/src/argus_htmx/dateformat/constants.py +++ b/src/argus_htmx/dateformat/constants.py @@ -17,6 +17,9 @@ class DateTimeFormat: DATETIME_FALLBACK = "LOCALE" + +# Datetime format specification can be found here: +# https://docs.djangoproject.com/en/5.1/ref/templates/builtins/#date DATETIME_FORMATS = { "LOCALE": DateTimeFormat(datetime="DATETIME_FORMAT", date="DATE_FORMAT", time="TIME_FORMAT"), # default "ISO": DateTimeFormat(datetime="Y-m-d H:i:s", date="Y-m-d", time="H:i:s"),