Verified Commit dbd7e656 authored by Dmitry Volodin's avatar Dmitry Volodin
Browse files

Adaptive DATE_INPUT_FORMATS

parent 6dd25fb5
Pipeline #15198 passed with stages
in 12 minutes and 12 seconds
......@@ -49,7 +49,10 @@ TIME_FORMAT = config.date_time_formats.time_format
MONTH_DAY_FORMAT = config.date_time_formats.month_day_format
YEAR_MONTH_FORMAT = config.date_time_formats.year_month_format
DATETIME_FORMAT = config.date_time_formats.datetime_format
DATE_INPUT_FORMATS = ["%d.%m.%Y", "%Y-%m-%d"]
# Set up date input formats
DATE_INPUT_FORMATS = ["%Y-%m-%d"]
if config.date_time_formats.date_format != DATE_INPUT_FORMATS[0]:
DATE_INPUT_FORMATS.insert(0, config.date_time_formats.date_format)
SITE_ID = 1
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment