Skip to content

Commit

Permalink
CSV output fix, date value was missing
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed May 15, 2017
1 parent d3834c7 commit d90a25f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/java/net/atomique/ksar/export/FileCSV.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import java.io.FileWriter;
import java.io.IOException;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Iterator;

import javax.swing.JDialog;
Expand Down Expand Up @@ -67,7 +68,12 @@ public void run() {
tmpLDT.getDayOfMonth(),
tmpLDT.getMonthValue(),
tmpLDT.getYear());


//add date to csv
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd/MM/yy HH:mm:ss");
String text = tmpLDT.format(formatter);
tmpcsv.append(text+";");

export_treenode_data(mysar.graphtree, tmp);
tmpcsv.append("\n");
}
Expand Down

0 comments on commit d90a25f

Please sign in to comment.