457 bug drop owntracks ping support (#458)

This commit is contained in:
Daniel Graf
2025-11-10 11:30:58 +01:00
committed by GitHub
parent b9e98a943b
commit a919be80ab

View File

@@ -2,9 +2,6 @@ package com.dedicatedcode.reitti.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.ZoneId;
import java.time.ZonedDateTime;
public class OwntracksLocationRequest {
@JsonProperty("_type")
@@ -133,9 +130,6 @@ public class OwntracksLocationRequest {
point.setLatitude(latitude);
point.setLongitude(longitude);
if (this.t != null && this.t.equals("p")) {
timestamp = ZonedDateTime.now().toEpochSecond();
}
// Convert Unix timestamp to ISO8601 format
if (timestamp != null) {
// Convert seconds to milliseconds and format as ISO8601