From b68809e913f0ddee032f5bfe6f0b19f37158d4b3 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Thu, 9 Jan 2025 17:38:53 +0000 Subject: [PATCH] Fix German date handler for reports Date displayers have an associated locale which can cause problems if more then one locale uses the same handler. Fixes #13312. --- gramps/gen/datehandler/_date_de.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gramps/gen/datehandler/_date_de.py b/gramps/gen/datehandler/_date_de.py index dbadf1debaf..97a12967a3e 100644 --- a/gramps/gen/datehandler/_date_de.py +++ b/gramps/gen/datehandler/_date_de.py @@ -441,4 +441,14 @@ def display(self, date): DateParserDE, DateDisplayDE, ) -register_datehandler(("de_AT", ("%d.%m.%Y",)), DateParserDE, DateDisplayDE) + + +class DateParserDE_AT(DateParserDE): + pass + + +class DateDisplayDE_AT(DateDisplayDE): + pass + + +register_datehandler(("de_AT", ("%d.%m.%Y",)), DateParserDE_AT, DateDisplayDE_AT)