diff options
-rw-r--r-- | src/org/traccar/model/Position.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/org/traccar/model/Position.java b/src/org/traccar/model/Position.java index 4f78867c2..2e3099774 100644 --- a/src/org/traccar/model/Position.java +++ b/src/org/traccar/model/Position.java @@ -131,6 +131,10 @@ public class Position extends Message { public static final String ALARM_TAMPERING = "tampering"; public static final String ALARM_REMOVING = "removing"; + public Position() { + this.serverTime = new Date(); + } + private String protocol; public String getProtocol() { |