From bc8ff1b4ae42f1eed62ddc1f38bddfc7c420063a Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Mon, 25 Aug 2014 11:24:21 +0200 Subject: Timestamp with Timezone offset --- .../main/java/at/gv/egiz/pdfas/lib/impl/stamping/ValueResolver.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pdf-as-lib/src/main/java/at') diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/ValueResolver.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/ValueResolver.java index 435ef5a3..4c145299 100644 --- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/ValueResolver.java +++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/ValueResolver.java @@ -48,7 +48,7 @@ public class ValueResolver implements IProfileConstants, IResolver { public static final String PatternRegex = "\\$(\\{[^\\$]*\\})"; - public static final String defaultDateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"; + public static final String defaultDateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSXXX"; public static final String EXP_START = "${"; public static final String EXP_END = "}"; @@ -72,7 +72,7 @@ public class ValueResolver implements IProfileConstants, IResolver { //} // Value holds the date format! SimpleDateFormat formater = new SimpleDateFormat(value); - formater.setTimeZone(TimeZone.getTimeZone("UTC")); + //formater.setTimeZone(TimeZone.getTimeZone("UTC")); Calendar cal = Calendar.getInstance(); return formater.format(cal.getTime()); } -- cgit v1.2.3