Use default locale when formatting strings

This commit is contained in:
Eugene Cheung 2018-09-05 22:09:58 -04:00
commit 2e7dd7b62e
No known key found for this signature in database
GPG key ID: E1FD745328866B0A
3 changed files with 8 additions and 4 deletions

View file

@ -1,5 +1,7 @@
package com.kabouzeid.gramophone.helper;
import java.util.Locale;
/**
* Simple thread safe stop watch.
*
@ -77,6 +79,6 @@ public class StopWatch {
@Override
public String toString() {
return String.format("%d millis", getElapsedTime());
return String.format(Locale.getDefault(), "%d millis", getElapsedTime());
}
}