From 95854432183fe4aa3f9e02512c4df9daa9831824 Mon Sep 17 00:00:00 2001 From: "Christopher C. Wells" Date: Tue, 14 Dec 2021 09:25:21 -0500 Subject: [PATCH] Revert "Treat `en` as `en-US` for date formatting" This reverts commit c06ce032. Proper handling for this language setting is added in commit 59372a01. --- babybuddy/middleware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/babybuddy/middleware.py b/babybuddy/middleware.py index 09ba6872..704b2273 100644 --- a/babybuddy/middleware.py +++ b/babybuddy/middleware.py @@ -80,7 +80,7 @@ class UserLanguageMiddleware: language = settings.LANGUAGE_CODE if language: - if language == 'en' or language == 'en-US': + if language == 'en-US': update_en_us_date_formats() elif language == 'en-GB': update_en_gb_date_formats()