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

Fixed #153 - Report change date format in initial export path

parent 1fc78a4a
No related branches found
No related tags found
1 merge request!160merge v1_4_0 into master
......@@ -73,7 +73,7 @@ report.footer.left=BudgetMaster Monatsbericht
report.footer.center=Seite {0}
report.repeating.yes=Ja
report.repeating.no=Nein
report.initial.filename=BudgetMaster Monatsbericht - {0} {1}.pdf
report.initial.filename=BudgetMaster Monatsbericht - {0}_{1}.pdf
# MONTH
month.january=Januar
......
......@@ -529,10 +529,10 @@ public class ReportController implements Refreshable
else
{
DateTime currentDate = controller.getCurrentDate();
String currentMonth = currentDate.toString("MMMM");
String currentMonth = currentDate.toString("MM");
String currentYear = currentDate.toString("YYYY");
fileChooser.setInitialFileName( Localization.getString(Strings.REPORT_INITIAL_FILENAME, currentMonth, currentYear));
fileChooser.setInitialFileName( Localization.getString(Strings.REPORT_INITIAL_FILENAME, currentYear, currentMonth));
}
fileChooser.getExtensionFilters().add(extFilter);
File file = fileChooser.showSaveDialog(controller.getStage());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment