diff options
author | Henri Herscher <henri@oreka.org> | 2005-11-30 20:48:34 +0000 |
---|---|---|
committer | Henri Herscher <henri@oreka.org> | 2005-11-30 20:48:34 +0000 |
commit | 8717fa54099fa9266cd376bc5bf321b474ca0b50 (patch) | |
tree | f0c03930fdadf16ef4a7f567be1adda59161bb99 /orkbasej/java | |
parent | 9a5cc6f01a6bfe640f2e92e3f9ad0ea831d1b667 (diff) |
start and stop hours are now 00:00:00 by default
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@78 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkbasej/java')
-rw-r--r-- | orkbasej/java/net/sf/oreka/persistent/RecProgram.java | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/orkbasej/java/net/sf/oreka/persistent/RecProgram.java b/orkbasej/java/net/sf/oreka/persistent/RecProgram.java index 211185d..fed2425 100644 --- a/orkbasej/java/net/sf/oreka/persistent/RecProgram.java +++ b/orkbasej/java/net/sf/oreka/persistent/RecProgram.java @@ -16,6 +16,7 @@ */ package net.sf.oreka.persistent; +import java.text.SimpleDateFormat; import java.util.Collection; import java.util.Date; @@ -52,8 +53,8 @@ public class RecProgram { private Cycle cycle = Cycle.PERMANENT; private Day startDay = Day.UNKN; private Day stopDay = Day.UNKN; - private Date startTime = new Date(0); - private Date stopTime = new Date(0); + private Date startTime = null; + private Date stopTime = null; private int recPerCycle = 0; private int recordedSoFar = 0; private String localParty = ""; @@ -99,7 +100,12 @@ public class RecProgram { public RecProgram () { - direction = Direction.ALL; + SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss"); + try { + startTime = sdf.parse("00:00:00"); + stopTime = sdf.parse("00:00:00"); + } + catch (Exception e) {;} } /** |