aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/MiniFinderProtocolEncoder.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-09-05 08:58:52 +0500
committerAbyss777 <abyss@fox5.ru>2017-09-05 08:58:52 +0500
commit158071c9ff74c5435b8f51ea82215240acb69551 (patch)
tree7f954059b508b4fd96d6976d3cd81ed2728a73f6 /src/org/traccar/protocol/MiniFinderProtocolEncoder.java
parent87392d9fbb0289b5486496b6e6b97db1ea84e2b7 (diff)
downloadtrackermap-server-158071c9ff74c5435b8f51ea82215240acb69551.tar.gz
trackermap-server-158071c9ff74c5435b8f51ea82215240acb69551.tar.bz2
trackermap-server-158071c9ff74c5435b8f51ea82215240acb69551.zip
Use casting and remove super
Diffstat (limited to 'src/org/traccar/protocol/MiniFinderProtocolEncoder.java')
-rw-r--r--src/org/traccar/protocol/MiniFinderProtocolEncoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/MiniFinderProtocolEncoder.java b/src/org/traccar/protocol/MiniFinderProtocolEncoder.java
index 7cf19d352..486f406a5 100644
--- a/src/org/traccar/protocol/MiniFinderProtocolEncoder.java
+++ b/src/org/traccar/protocol/MiniFinderProtocolEncoder.java
@@ -29,7 +29,7 @@ public class MiniFinderProtocolEncoder extends StringProtocolEncoder implements
if (key.equals(Command.KEY_ENABLE)) {
return (Boolean) value ? "1" : "0";
} else if (key.equals(Command.KEY_TIMEZONE)) {
- return String.format("%+03d", TimeZone.getTimeZone(value.toString()).getRawOffset() / 3600000);
+ return String.format("%+03d", TimeZone.getTimeZone((String) value).getRawOffset() / 3600000);
} else if (key.equals(Command.KEY_INDEX)) {
switch (((Number) value).intValue()) {
case 0: