From 7ddcf4cbab7ca58683ae13c136bf0b20069f8f10 Mon Sep 17 00:00:00 2001 From: tknall Date: Wed, 19 Sep 2007 07:16:45 +0000 Subject: log date parsing git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@214 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- src/main/java/at/knowcenter/wag/egov/egiz/pdf/EGIZDate.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/main/java') 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), -- cgit v1.2.3