fix csv export with locales that do not use dot as decimal separator

pull/334/merge
Luboš Luňák 8 years ago committed by Alinson Xavier
parent 46c61f9ea9
commit 318caa886c

@ -172,7 +172,7 @@ public abstract class ScoreList implements Iterable<Score>
for (Score s : this)
{
String timestamp = dateFormat.format(s.getTimestamp().getUnixTime());
String score = String.format("%.4f", s.getValue());
String score = String.format((Locale)null, "%.4f", s.getValue());
out.write(String.format("%s,%s\n", timestamp, score));
}
}

Loading…
Cancel
Save