Commit 8768827a authored by Edward Wang's avatar Edward Wang

src: Show times in the universal time format

parent bc3b4aaf
......@@ -28,7 +28,9 @@ import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.util.HashSet;
import java.util.Locale;
import java.util.Properties;
import android.content.Context;
......@@ -126,7 +128,8 @@ public class Util {
int hours = (int) millis;
String time;
DecimalFormat format = new DecimalFormat("00");
DecimalFormat format = (DecimalFormat)NumberFormat.getInstance(Locale.US);
format.applyPattern("00");
if (millis > 0) {
time = (negative ? "-" : "") + hours + ":" + format.format(min) + ":" + format.format(sec);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment