diff options
-rw-r--r-- | src/main/java/at/knowcenter/wag/egov/egiz/pdf/EGIZDate.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/pdf/EGIZDate.java b/src/main/java/at/knowcenter/wag/egov/egiz/pdf/EGIZDate.java index b801706..a9463b2 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/pdf/EGIZDate.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/pdf/EGIZDate.java @@ -21,10 +21,9 @@ import java.text.ParseException; import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
import org.apache.commons.lang.time.DateUtils;
+import org.apache.log4j.Logger;
/**
* Represents a signature date and the signing time as can be found in the
@@ -37,6 +36,8 @@ import org.apache.commons.lang.time.DateUtils; * @author wprinz
*/
public class EGIZDate {
+
+ private static final Logger LOG = Logger.getLogger(EGIZDate.class);
/**
* The year.
@@ -160,6 +161,8 @@ public class EGIZDate { }
Calendar calendar = new GregorianCalendar();
calendar.setTime(date);
+
+ LOG.debug("Parsing date string \"" + date_value + "\" returns: " + date);
return new EGIZDate(calendar.get(Calendar.YEAR), calendar
.get(Calendar.MONTH), calendar.get(Calendar.DAY_OF_MONTH),
|