diff options
author | 2022-11-11 02:35:50 +0100 | |
---|---|---|
committer | 2022-11-11 02:35:50 +0100 | |
commit | aea38f9320591733a053a4bc9427190ce9c074b0 (patch) | |
tree | 1ba84d48d4c79df83ce34bfcbf3c1c40f09d15e3 /src/main/java/it/alessandroiezzi/simplyreports/pdf/PDFTable.java | |
parent | 08c017f1304979a1e4c830201a4b45121209ca9c (diff) | |
download | simply-reports-aea38f9320591733a053a4bc9427190ce9c074b0.tar.gz simply-reports-aea38f9320591733a053a4bc9427190ce9c074b0.zip |
Add time to the table signature
Diffstat (limited to 'src/main/java/it/alessandroiezzi/simplyreports/pdf/PDFTable.java')
-rw-r--r-- | src/main/java/it/alessandroiezzi/simplyreports/pdf/PDFTable.java | 7 |
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)); |