summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWojciech Sliwka <wojciech.sliwka@nokia.com>2019-09-03 07:53:55 +0000
committerGerrit Code Review <gerrit@onap.org>2019-09-03 07:53:55 +0000
commitda094bf82ae74443afeb50d86712eb5e784b481d (patch)
treee408a75b05301586f578bc9182effa122a604683
parentd4d98f9674093637589fe3780d22756f02e92e1b (diff)
parent2b13a1e7af230b308d698ebb15ad13212e0e0d26 (diff)
Merge "Add to SimpleDateFormat function locale us parameter"
-rw-r--r--vid-app-common/src/main/java/org/onap/vid/model/JobAuditStatus.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/vid-app-common/src/main/java/org/onap/vid/model/JobAuditStatus.java b/vid-app-common/src/main/java/org/onap/vid/model/JobAuditStatus.java
index 645934530..012db5a31 100644
--- a/vid-app-common/src/main/java/org/onap/vid/model/JobAuditStatus.java
+++ b/vid-app-common/src/main/java/org/onap/vid/model/JobAuditStatus.java
@@ -24,6 +24,7 @@ import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
+import java.util.Locale;
import java.util.TimeZone;
import java.util.UUID;
import javax.persistence.Column;
@@ -100,7 +101,7 @@ public class JobAuditStatus extends VidBaseEntity {
return null;
}
- DateFormat format = new SimpleDateFormat(defaultFormat);
+ DateFormat format = new SimpleDateFormat(defaultFormat, Locale.US);
format.setTimeZone(TimeZone.getTimeZone("GMT"));
Date date = null ;
try {