Quick fix to zoneId to make it set correctly

- removed local zoneId
#story[761]
#pair[fwy13, hba56]
This commit is contained in:
hba56
2017-04-19 11:55:11 +12:00
parent e501102bc5
commit a00b066f8d
+1 -1
View File
@@ -22,7 +22,7 @@ public class RaceClock {
public RaceClock(GPSCoordinate gpsCoordinate){
TimeZoneLookup timeZoneLookup = new TimeZoneLookup();
TimeZoneResult timeZoneResult = timeZoneLookup.getTimeZone(gpsCoordinate.getLatitude(), gpsCoordinate.getLongitude());
ZoneId zoneId = ZoneId.of(timeZoneResult.getResult());
zoneId = ZoneId.of(timeZoneResult.getResult());
LocalDateTime localDateTime = LocalDateTime.now(zoneId);
ZonedDateTime zonedDateTime = localDateTime.atZone(zoneId);
dateTimeFormatter = DateTimeFormatter.ofPattern("dd-MM HH:mm:ss z");