From 2e218a2f028959037eec61b7be5c603c325c8545 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 14 Feb 2015 10:49:02 +1300 Subject: Specify date format locale (fix #1080) --- src/org/traccar/protocol/TramigoProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org/traccar/protocol') diff --git a/src/org/traccar/protocol/TramigoProtocolDecoder.java b/src/org/traccar/protocol/TramigoProtocolDecoder.java index 70eec208e..a31f3294b 100644 --- a/src/org/traccar/protocol/TramigoProtocolDecoder.java +++ b/src/org/traccar/protocol/TramigoProtocolDecoder.java @@ -142,7 +142,7 @@ public class TramigoProtocolDecoder extends BaseProtocolDecoder { if (!matcher.find()) { return null; } - DateFormat dateFormat = new SimpleDateFormat("HH:mm MMM d yyyy"); + DateFormat dateFormat = new SimpleDateFormat("HH:mm MMM d yyyy", Locale.ENGLISH); position.setTime(dateFormat.parse(matcher.group(1) + " " + Calendar.getInstance().get(Calendar.YEAR))); position.setExtendedInfo(extendedInfo.toString()); -- cgit v1.2.3