Skip to content

Commit 9535a85

Browse files
committed
#8 Add some correcting
1 parent 372bd9e commit 9535a85

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/main/java/org/scada_lts/config/Configuration.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public Date getDate() throws ParseException {
3535
int year = conf.getYear();
3636
int month = conf.getMonth();
3737

38-
SimpleDateFormat sdf = new SimpleDateFormat("yy.mm.dd");
38+
SimpleDateFormat sdf = new SimpleDateFormat("yy.MM.dd");
3939
Date date = sdf.parse(year + "." + month + ".01");
4040
return date;
4141
}

src/main/java/org/scada_lts/report_to_libreoffice/App.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,9 @@ public static void main(String[] args) throws Exception {
138138

139139
//actualize data in title
140140

141-
String monthInFrance = new SimpleDateFormat("MMM", Locale.FRANCE).format(Configuration.getInstance().getDate());
142-
141+
String monthInFrance = new SimpleDateFormat("MMMM", Locale.FRANCE).format(Configuration.getInstance().getDate());
142+
p("date:"+Configuration.getInstance().getDate());
143+
p("month:" + monthInFrance);
143144
int xMonth = 0;
144145
int yMonth = 48;
145146

393 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)