diff options
-rw-r--r-- | vdrmanager/src/de/bjusystems/vdrmanager/data/Vdr.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/data/Vdr.java b/vdrmanager/src/de/bjusystems/vdrmanager/data/Vdr.java index 6147379..b34c5bd 100644 --- a/vdrmanager/src/de/bjusystems/vdrmanager/data/Vdr.java +++ b/vdrmanager/src/de/bjusystems/vdrmanager/data/Vdr.java @@ -2,6 +2,7 @@ package de.bjusystems.vdrmanager.data; import java.util.HashMap; import java.util.Map; +import java.util.TimeZone; import com.j256.ormlite.field.DatabaseField; import com.j256.ormlite.table.DatabaseTable; @@ -183,6 +184,18 @@ public class Vdr { @DatabaseField private boolean enableRecStreaming = false; + + @DatabaseField(columnName="stz") + private String serverTimeZone = "Europe/Berlin"; + + public String getServerTimeZone() { + return serverTimeZone; + } + + public void setServerTimeZone(String serverTimeZone) { + this.serverTimeZone = serverTimeZone; + } + public String getRecStreamMethod() { return recStreamMethod; } @@ -562,6 +575,7 @@ public class Vdr { map.put("key_rec_stream_enable", enableRecStreaming); map.put("key_live_port", livePort); map.put("key_recstream_method", recStreamMethod); + map.put("key_timezone", serverTimeZone); return map; } @@ -655,6 +669,7 @@ public class Vdr { enableRecStreaming = getBoolean(map, "key_rec_stream_enable"); livePort = getInteger(map, "key_live_port"); recStreamMethod = get(map, "key_recstream_method"); + serverTimeZone = get(map, "key_imezone", TimeZone.getDefault()); } |