From 21095c6aa0bc5faa67fa560e620ff037df54f4c9 Mon Sep 17 00:00:00 2001 From: lado Date: Fri, 15 Mar 2013 16:00:25 +0100 Subject: Time Zone Support --- vdrmanager/src/de/bjusystems/vdrmanager/data/Vdr.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'vdrmanager/src/de') 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()); } -- cgit v1.2.3