aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-03-21 19:04:54 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-03-21 19:04:54 -0700
commit2df9790f222518b3497981f1655a240c0156a6f4 (patch)
tree07031b3761790bb8759cad7592e9c35eff4e625c
parent1816dcd505d0d5d8201ce2e8f78030569e70322f (diff)
downloadtraccar-server-2df9790f222518b3497981f1655a240c0156a6f4.tar.gz
traccar-server-2df9790f222518b3497981f1655a240c0156a6f4.tar.bz2
traccar-server-2df9790f222518b3497981f1655a240c0156a6f4.zip
Update date format
-rw-r--r--src/org/traccar/protocol/XirgoProtocolDecoder.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/XirgoProtocolDecoder.java b/src/org/traccar/protocol/XirgoProtocolDecoder.java
index ef1695856..38c21f387 100644
--- a/src/org/traccar/protocol/XirgoProtocolDecoder.java
+++ b/src/org/traccar/protocol/XirgoProtocolDecoder.java
@@ -205,9 +205,9 @@ public class XirgoProtocolDecoder extends BaseProtocolDecoder {
break;
case "D":
String[] date = values[i].split("/");
- dateBuilder.setYear(Integer.parseInt(date[0]));
- dateBuilder.setMonth(Integer.parseInt(date[1]));
- dateBuilder.setDay(Integer.parseInt(date[2]));
+ dateBuilder.setMonth(Integer.parseInt(date[0]));
+ dateBuilder.setDay(Integer.parseInt(date[1]));
+ dateBuilder.setYear(Integer.parseInt(date[2]));
break;
case "T":
String[] time = values[i].split(":");