diff options
Diffstat (limited to 'src/org/traccar/protocol/Pt502ProtocolEncoder.java')
-rw-r--r-- | src/org/traccar/protocol/Pt502ProtocolEncoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/Pt502ProtocolEncoder.java b/src/org/traccar/protocol/Pt502ProtocolEncoder.java index d5e219bd2..4a876f6da 100644 --- a/src/org/traccar/protocol/Pt502ProtocolEncoder.java +++ b/src/org/traccar/protocol/Pt502ProtocolEncoder.java @@ -26,7 +26,7 @@ public class Pt502ProtocolEncoder extends StringProtocolEncoder implements Strin @Override public String formatValue(String key, Object value) { if (key.equals(Command.KEY_TIMEZONE)) { - return String.valueOf(TimeZone.getTimeZone(value.toString()).getRawOffset() / 3600000); + return String.valueOf(TimeZone.getTimeZone((String) value).getRawOffset() / 3600000); } return null; @@ -34,7 +34,7 @@ public class Pt502ProtocolEncoder extends StringProtocolEncoder implements Strin @Override protected String formatCommand(Command command, String format, String... keys) { - return super.formatCommand(command, format, this, keys); + return formatCommand(command, format, this, keys); } @Override |