Skip to content
Snippets Groups Projects
Commit 93553c2c authored by Robert Goldmann's avatar Robert Goldmann
Browse files

Fixed #144 - report: fix date format

parent c11cc4e3
No related branches found
No related tags found
1 merge request!150merge v1_3_1 into master
......@@ -7,6 +7,7 @@ import java.io.FileOutputStream;
import java.util.ArrayList;
import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormat;
import com.itextpdf.text.BaseColor;
import com.itextpdf.text.Chapter;
......@@ -245,7 +246,7 @@ public class ReportGenerator
}
return name;
case DATE:
return reportItem.getDate();
return DateTime.parse(reportItem.getDate(), DateTimeFormat.forPattern("YYYY-MM-dd")).toString("dd.MM.YYYY");
case DESCRIPTION:
return reportItem.getDescription();
case NAME:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment