aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/web/GpxBuilder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/web/GpxBuilder.java')
-rw-r--r--src/org/traccar/web/GpxBuilder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/web/GpxBuilder.java b/src/org/traccar/web/GpxBuilder.java
index 41f406eb7..638d100e5 100644
--- a/src/org/traccar/web/GpxBuilder.java
+++ b/src/org/traccar/web/GpxBuilder.java
@@ -18,7 +18,7 @@ package org.traccar.web;
import java.util.Collection;
-import org.traccar.Context;
+import org.traccar.helper.DateUtil;
import org.traccar.helper.UnitsConverter;
import org.traccar.model.Position;
@@ -51,7 +51,7 @@ public class GpxBuilder {
public void addPosition(Position position) {
builder.append(String.format(POINT, position.getLatitude(), position.getLongitude(),
- Context.DATE_FORMATTER.format(position.getFixTime().toInstant()), position.getAltitude(),
+ DateUtil.formatDate(position.getFixTime()), position.getAltitude(),
position.getCourse(), UnitsConverter.mpsFromKnots(position.getSpeed())));
}