summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/it/alessandroiezzi/simplyreports/pdf/PDFTable.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/it/alessandroiezzi/simplyreports/pdf/PDFTable.java b/src/main/java/it/alessandroiezzi/simplyreports/pdf/PDFTable.java
index 20cac75..39ee50e 100644
--- a/src/main/java/it/alessandroiezzi/simplyreports/pdf/PDFTable.java
+++ b/src/main/java/it/alessandroiezzi/simplyreports/pdf/PDFTable.java
@@ -41,9 +41,12 @@ public abstract class PDFTable<E> extends PDFEntity<PdfPTable> {
}
private void generateSignature() {
- SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
+ SimpleDateFormat sdfDate = new SimpleDateFormat("dd/MM/yyyy");
+ SimpleDateFormat sdfTime = new SimpleDateFormat("HH:mm");
+
+ Date now = new Date();
addFooter(new PDFTableFooter(null,
- "Generato con Simply Reports il " + sdf.format(new Date()),
+ "Generato con Simply Reports il " + sdfDate.format(now) + " alle " + sdfTime.format(now),
null,
null,
0));