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

This commit is contained in:
Luboš Luňák
2017-09-18 22:44:58 +02:00
committed by Alinson Xavier
parent 46c61f9ea9
commit 318caa886c

View File

@@ -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));
}
}