diff options
author | Wojciech Sliwka <wojciech.sliwka@nokia.com> | 2019-09-03 07:53:55 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-09-03 07:53:55 +0000 |
commit | da094bf82ae74443afeb50d86712eb5e784b481d (patch) | |
tree | e408a75b05301586f578bc9182effa122a604683 /vid-app-common/src/main | |
parent | d4d98f9674093637589fe3780d22756f02e92e1b (diff) | |
parent | 2b13a1e7af230b308d698ebb15ad13212e0e0d26 (diff) |
Merge "Add to SimpleDateFormat function locale us parameter"
Diffstat (limited to 'vid-app-common/src/main')
-rw-r--r-- | vid-app-common/src/main/java/org/onap/vid/model/JobAuditStatus.java | 3 |
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 { |