mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
fix csv export with locales that do not use dot as decimal separator
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user