Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Forced United States locale for data submitted to Beeminder.

  • Loading branch information...
commit b4c962843e2a43ca779460153e844ce0e4a15b7a 1 parent f16f688
player-03 authored
View
BIN  TagTime.jar
Binary file not shown
View
3  src/tagtime/beeminder/BeeminderGraph.java
@@ -28,9 +28,11 @@
import java.io.IOException;
import java.math.RoundingMode;
import java.text.DecimalFormat;
+import java.text.DecimalFormatSymbols;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
+import java.util.Locale;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
@@ -93,6 +95,7 @@ public BeeminderGraph(TagTime tagTimeInstance, String username, String dataEntry
.getIntValue(SettingType.PRECISION);
hourFormatter = new DecimalFormat();
hourFormatter.setGroupingUsed(false);
+ hourFormatter.setDecimalFormatSymbols(DecimalFormatSymbols.getInstance(Locale.US));
hourFormatter.setRoundingMode(RoundingMode.HALF_UP);
hourFormatter.setMaximumFractionDigits(decimalDigits);
roundingMultiplier = (int) Math.pow(10, decimalDigits);
Please sign in to comment.
Something went wrong with that request. Please try again.