diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-02-14 10:49:02 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-02-14 10:49:02 +1300 |
commit | 2e218a2f028959037eec61b7be5c603c325c8545 (patch) | |
tree | 4f0d6840787f4f3694b8a69c66cbdaff8c90660d | |
parent | a5c854494e398f670787d62385f3bb9c619c2606 (diff) | |
download | trackermap-server-2e218a2f028959037eec61b7be5c603c325c8545.tar.gz trackermap-server-2e218a2f028959037eec61b7be5c603c325c8545.tar.bz2 trackermap-server-2e218a2f028959037eec61b7be5c603c325c8545.zip |
Specify date format locale (fix #1080)
-rw-r--r-- | src/org/traccar/protocol/TramigoProtocolDecoder.java | 2 |
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()); |