diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-04-18 22:30:15 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-04-18 22:30:15 -0700 |
commit | f458cbe473bdc49157415a8bfc6441afd86b670e (patch) | |
tree | 787a8c80cb6ad16c5aaae06ecf81ffbdec2fa126 /src/main/java/org/traccar/config | |
parent | 03169baaea991d3c343a65ebac3eb3242d743fd0 (diff) | |
download | traccar-server-f458cbe473bdc49157415a8bfc6441afd86b670e.tar.gz traccar-server-f458cbe473bdc49157415a8bfc6441afd86b670e.tar.bz2 traccar-server-f458cbe473bdc49157415a8bfc6441afd86b670e.zip |
Option to force time override
Diffstat (limited to 'src/main/java/org/traccar/config')
-rw-r--r-- | src/main/java/org/traccar/config/Keys.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java index 48cf3e558..a000329e2 100644 --- a/src/main/java/org/traccar/config/Keys.java +++ b/src/main/java/org/traccar/config/Keys.java @@ -184,6 +184,19 @@ public final class Keys { "filter.skipAttributes.enable", Boolean.class); /** + * Override device time. Possible values are 'deviceTime' and 'serverTime' + */ + public static final ConfigKey TIME_OVERRIDE = new ConfigKey( + "time.override", String.class); + + /** + * List of protocols for overriding time. If not specified override is applied globally. List consist of protocol + * names that can be separated by comma or single space character. + */ + public static final ConfigKey TIME_PROTOCOLS = new ConfigKey( + "time.protocols", String.class); + + /** * Replaces coordinates with last known if change is less than a 'coordinates.error' meters. Helps to avoid * coordinates jumps during parking period. */ |