Skip to content

Commit 0e40355

Browse files
committed
Log events timestamp in US locale
1 parent 2b28fb4 commit 0e40355

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/main/java/io/snabble/sdk/Events.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import java.io.IOException;
1313
import java.text.SimpleDateFormat;
1414
import java.util.Date;
15+
import java.util.Locale;
1516
import java.util.TimeZone;
1617

1718
import io.snabble.sdk.utils.GsonHolder;
@@ -39,7 +40,7 @@ class Events {
3940
public Events(Project project) {
4041
this.project = project;
4142

42-
simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
43+
simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", Locale.US);
4344
simpleDateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
4445

4546
project.getShoppingCart().addListener(new ShoppingCart.SimpleShoppingCartListener() {

0 commit comments

Comments
 (0)