diff options
author | lado <herrlado@gmail.com> | 2013-03-15 16:00:25 +0100 |
---|---|---|
committer | lado <herrlado@gmail.com> | 2013-03-15 16:00:25 +0100 |
commit | 21095c6aa0bc5faa67fa560e620ff037df54f4c9 (patch) | |
tree | c39ceed0e3c6f1351bdc8cee5f69b2a9ffa6933b /vdrmanager/src | |
parent | a156488f0cf0f249cac9d61728c39d4311e34ec0 (diff) | |
download | vdr-manager-21095c6aa0bc5faa67fa560e620ff037df54f4c9.tar.gz vdr-manager-21095c6aa0bc5faa67fa560e620ff037df54f4c9.tar.bz2 |
Time Zone Support
Diffstat (limited to 'vdrmanager/src')
-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()); } |