diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-07-26 01:33:29 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-07-26 01:33:29 +1200 |
commit | 78d7d9cb121115b064a6c9ed8fcaccc2dfd0a825 (patch) | |
tree | de4e660d2b1569fc9f86d9952d2161301baab4d6 /src/org/traccar/BaseProtocolDecoder.java | |
parent | 7c8e00eba940fdbcde3ea2b60e6094caa9098b99 (diff) | |
download | trackermap-server-78d7d9cb121115b064a6c9ed8fcaccc2dfd0a825.tar.gz trackermap-server-78d7d9cb121115b064a6c9ed8fcaccc2dfd0a825.tar.bz2 trackermap-server-78d7d9cb121115b064a6c9ed8fcaccc2dfd0a825.zip |
Make Huabao timezone configurable
Diffstat (limited to 'src/org/traccar/BaseProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/BaseProtocolDecoder.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/org/traccar/BaseProtocolDecoder.java b/src/org/traccar/BaseProtocolDecoder.java index fe41bd857..d7ccb6460 100644 --- a/src/org/traccar/BaseProtocolDecoder.java +++ b/src/org/traccar/BaseProtocolDecoder.java @@ -82,7 +82,11 @@ public abstract class BaseProtocolDecoder extends ExtendedObjectDecoder { } protected TimeZone getTimeZone(long deviceId) { - TimeZone result = TimeZone.getTimeZone("UTC"); + return getTimeZone(deviceId, "UTC"); + } + + protected TimeZone getTimeZone(long deviceId, String defaultTimeZone) { + TimeZone result = TimeZone.getTimeZone(defaultTimeZone); String timeZoneName = null; if (Context.getDeviceManager() != null) { timeZoneName = Context.getDeviceManager().lookupAttributeString( |