aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/TramigoProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-02-14 10:49:02 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-02-14 10:49:02 +1300
commit2e218a2f028959037eec61b7be5c603c325c8545 (patch)
tree4f0d6840787f4f3694b8a69c66cbdaff8c90660d /src/org/traccar/protocol/TramigoProtocolDecoder.java
parenta5c854494e398f670787d62385f3bb9c619c2606 (diff)
downloadtrackermap-server-2e218a2f028959037eec61b7be5c603c325c8545.tar.gz
trackermap-server-2e218a2f028959037eec61b7be5c603c325c8545.tar.bz2
trackermap-server-2e218a2f028959037eec61b7be5c603c325c8545.zip
Specify date format locale (fix #1080)
Diffstat (limited to 'src/org/traccar/protocol/TramigoProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/TramigoProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
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());