From 93d186e0ff93dc2ccaec767a2c104dfa22d6b71e Mon Sep 17 00:00:00 2001
From: Matthias Ronge <matthias.ronge@mik-center.de>
Date: Wed, 26 Apr 2023 12:19:13 +0200
Subject: [PATCH] Create newspaper processes in the correct year

---
 .../model/bibliography/course/IndividualIssue.java          | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Kitodo/src/main/java/org/kitodo/production/model/bibliography/course/IndividualIssue.java b/Kitodo/src/main/java/org/kitodo/production/model/bibliography/course/IndividualIssue.java
index 6ac0ff21ca6..c9405744de3 100644
--- a/Kitodo/src/main/java/org/kitodo/production/model/bibliography/course/IndividualIssue.java
+++ b/Kitodo/src/main/java/org/kitodo/production/model/bibliography/course/IndividualIssue.java
@@ -53,16 +53,16 @@ public class IndividualIssue {
     private static final DateTimeFormatter MONTH = DateTimeFormatter.ofPattern("MM");
 
     /**
-     * The constant YEAR2 holds a DateTimeFormatter used to get the a four-digit
+     * The constant YEAR2 holds a DateTimeFormatter used to get the a two-digit
      * year of era (00—99, always positive) from the newspaper’s date.
      */
-    private static final DateTimeFormatter YEAR2 = DateTimeFormatter.ofPattern("YY");
+    private static final DateTimeFormatter YEAR2 = DateTimeFormatter.ofPattern("yy");
 
     /**
      * The constant YEAR4 holds a DateTimeFormatter used to get the a four-digit
      * year of era (0001—9999, always positive) from the newspaper’s date.
      */
-    private static final DateTimeFormatter YEAR4 = DateTimeFormatter.ofPattern("YYYY");
+    private static final DateTimeFormatter YEAR4 = DateTimeFormatter.ofPattern("yyyy");
 
     /**
      * Metadata key to store the sorting number.