From d1f27dcb7c9e6fee56a800371698132e80b35f34 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Sun, 15 Aug 2010 17:08:46 +0200 Subject: [PATCH] Small fixes. --- src/fr/devinsy/util/DateHelper.java | 8 ++++---- src/fr/devinsy/util/DateTimeHelper.java | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/fr/devinsy/util/DateHelper.java b/src/fr/devinsy/util/DateHelper.java index 1aa7513..2f09b92 100755 --- a/src/fr/devinsy/util/DateHelper.java +++ b/src/fr/devinsy/util/DateHelper.java @@ -20,10 +20,10 @@ public class DateHelper { //static private org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger (DateHelper.class); - static final String EUROPEAN_DATE_FORMAT = "%02/%02/%04"; - static final String RAW_DATE_FORMAT = "%04%02%02"; - static final String ISO_DATE_FORMAT = "%04-%02-%02"; - static final String AMERICAN_DATE_FORMAT = "%02/%02/%04"; + static final String EUROPEAN_DATE_FORMAT = "%02d/%02d/%04d"; + static final String RAW_DATE_FORMAT = "%04d%02d%02d"; + static final String ISO_DATE_FORMAT = "%04d-%02d-%02d"; + static final String AMERICAN_DATE_FORMAT = "%02d/%02d/%04d"; static final String EUROPEAN_DATE_PATTERN = "^([0123]{0,1}\\d)/([01]{0,1}\\d)/(\\d\\d\\d\\d)$"; static final String RAW_DATE_PATTERN = "^(\\d\\d\\d\\d)([01]\\d)([0123]\\d)$"; diff --git a/src/fr/devinsy/util/DateTimeHelper.java b/src/fr/devinsy/util/DateTimeHelper.java index 81af9e9..0fc807f 100755 --- a/src/fr/devinsy/util/DateTimeHelper.java +++ b/src/fr/devinsy/util/DateTimeHelper.java @@ -15,10 +15,10 @@ public class DateTimeHelper { //static private org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger (DateTimeHelper.class); - static final String EUROPEAN_DATE_FORMAT = "%02/%02/%04 %02:%02:%02"; - static final String RAW_DATE_FORMAT = "%04%02%02 %02:%02:%02"; - static final String ISO_DATE_FORMAT = "%04-%02-%02 %02:%02:%02"; - static final String AMERICAN_DATE_FORMAT = "%02/%02/%04 %02:%02:%02"; + static final String EUROPEAN_DATE_FORMAT = "%02d/%02d/%04d %02d:%02d:%02d"; + static final String RAW_DATE_FORMAT = "%04d%02d%02d %02d:%02d:%02d"; + static final String ISO_DATE_FORMAT = "%04d-%02d-%02d %02d:%02d:%02d"; + static final String AMERICAN_DATE_FORMAT = "%02d/%02d/%04d %02d:%02d:%02d"; static final String EUROPEAN_DATE_PATTERN = "^([0123]{0,1}\\d)/([01]{0,1}\\d)/(\\d\\d\\d\\d)$"; static final String RAW_DATE_PATTERN = "^(\\d\\d\\d\\d)([01]\\d)([0123]\\d)$";