aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2007-09-19 07:16:45 +0000
committertknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2007-09-19 07:16:45 +0000
commit7ddcf4cbab7ca58683ae13c136bf0b20069f8f10 (patch)
tree0b367ffb4e6b30f421c4797ceb48c59e84ed5261 /src
parent6f8f9f801c56e1c1b743db514ff22ce75157a71b (diff)
downloadpdf-as-3-7ddcf4cbab7ca58683ae13c136bf0b20069f8f10.tar.gz
pdf-as-3-7ddcf4cbab7ca58683ae13c136bf0b20069f8f10.tar.bz2
pdf-as-3-7ddcf4cbab7ca58683ae13c136bf0b20069f8f10.zip
log date parsing
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@214 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/pdf/EGIZDate.java7
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),