Skip to content

Commit

Permalink
add link to relevant django docs
Browse files Browse the repository at this point in the history
  • Loading branch information
elfjes committed Nov 26, 2024
1 parent 77edfb8 commit 4550d3a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/argus_htmx/dateformat/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit 4550d3a

Please sign in to comment.