Skip to content

Commit d05d5ab

Browse files
Fixes: Bugfix# 13874
Summary: Supports different formats for dates in the documents. Changes: Include multiple formats like, long, full, medium and short types of dates for the document templates.
1 parent f0044b5 commit d05d5ab

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sormas-backend/src/main/java/de/symeda/sormas/backend/docgeneration/DocumentTemplateFacadeEjb.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,12 @@ private void fillGeneralValues(DocumentVariables documentVariables, Properties p
318318
String dateType = generalProperty.substring(generalProperty.lastIndexOf('.') + 1);
319319
FormatStyle formatStyle;
320320
switch (dateType) {
321+
case "long":
322+
formatStyle = FormatStyle.LONG;
323+
break;
324+
case "full":
325+
formatStyle = FormatStyle.FULL;
326+
break;
321327
case "medium":
322328
formatStyle = FormatStyle.MEDIUM;
323329
break;

0 commit comments

Comments
 (0)