From 0e5abb54a7ccc39d2b2e2f6b4baee9fee8b60c03 Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Tue, 11 Apr 2023 18:00:01 +0200 Subject: fix(database): change wrong timestamp in DB backend from TUG: 'm' stands for minutes and not months, so use 'M' instead. This was just used for logging, so there is no functional change. --- .../src/main/java/at/gv/egiz/pdfas/web/store/DBRequestStore.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pdf-as-web-db/src/main/java') diff --git a/pdf-as-web-db/src/main/java/at/gv/egiz/pdfas/web/store/DBRequestStore.java b/pdf-as-web-db/src/main/java/at/gv/egiz/pdfas/web/store/DBRequestStore.java index 872dc807..92e32e1e 100644 --- a/pdf-as-web-db/src/main/java/at/gv/egiz/pdfas/web/store/DBRequestStore.java +++ b/pdf-as-web-db/src/main/java/at/gv/egiz/pdfas/web/store/DBRequestStore.java @@ -47,7 +47,7 @@ public class DBRequestStore implements IRequestStore { final Calendar calendar = Calendar.getInstance(); calendar.add(Calendar.SECOND, -1 * seconds); final Date date = calendar.getTime(); - final SimpleDateFormat dt = new SimpleDateFormat("yyyy-mm-dd hh:mm:ss"); + final SimpleDateFormat dt = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); logger.info("Clearing Entries before: " + dt.format(date)); Session session = null; Transaction tx = null; @@ -73,7 +73,7 @@ public class DBRequestStore implements IRequestStore { final Calendar calendar = Calendar.getInstance(); calendar.add(Calendar.SECOND, -1 * seconds); final Date date = calendar.getTime(); - final SimpleDateFormat dt = new SimpleDateFormat("yyyy-mm-dd hh:mm:ss"); + final SimpleDateFormat dt = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); logger.info("Clearing Entries before: " + dt.format(date)); Session session = null; try { -- cgit v1.2.3