From f3a62408e3f01ea4a2979aaaa98111f66473af9b Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Fri, 8 May 2020 16:41:08 +0200 Subject: [PATCH] fixing date issues --- rowsandall_app/settings.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/rowsandall_app/settings.py b/rowsandall_app/settings.py index df202a9e..75ee64e3 100644 --- a/rowsandall_app/settings.py +++ b/rowsandall_app/settings.py @@ -201,7 +201,17 @@ AUTH_PASSWORD_VALIDATORS = [ USE_I18N = True -USE_L10N = True +USE_L10N = False + +DATE_INPUT_FORMATS = [ + '%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', # '2006-10-25', '10/25/2006', '10/25/06' + '%b %d %Y', '%b %d, %Y', # 'Oct 25 2006', 'Oct 25, 2006' + '%d %b %Y', '%d %b, %Y', # '25 Oct 2006', '25 Oct, 2006' + '%B %d %Y', '%B %d, %Y', # 'October 25 2006', 'October 25, 2006' + '%d %B %Y', '%d %B, %Y', # '25 October 2006', '25 October, 2006' +] + +DATE_FORMAT = 'Y-m-d' USE_TZ = True TIME_ZONE = 'UTC'