aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas <>2023-04-11 18:00:01 +0200
committerThomas <>2023-04-11 18:00:01 +0200
commit0e5abb54a7ccc39d2b2e2f6b4baee9fee8b60c03 (patch)
treed3b1f3e892d02a8f2c10d0a029597731ca19f272
parentfa61353f5d5b47a240dbaddcd94a73d4fd4d31f7 (diff)
downloadpdf-as-4-0e5abb54a7ccc39d2b2e2f6b4baee9fee8b60c03.tar.gz
pdf-as-4-0e5abb54a7ccc39d2b2e2f6b4baee9fee8b60c03.tar.bz2
pdf-as-4-0e5abb54a7ccc39d2b2e2f6b4baee9fee8b60c03.zip
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.
-rw-r--r--pdf-as-web-db/src/main/java/at/gv/egiz/pdfas/web/store/DBRequestStore.java4
1 files changed, 2 insertions, 2 deletions
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 {