diff options
author | Ittay Stern <ittay.stern@att.com> | 2019-09-02 17:14:11 +0300 |
---|---|---|
committer | Ittay Stern <ittay.stern@att.com> | 2019-09-02 17:14:11 +0300 |
commit | 2b13a1e7af230b308d698ebb15ad13212e0e0d26 (patch) | |
tree | 70aac4fbeb5d6ee5211c717b35a96805a873c8a3 /vid-app-common | |
parent | b854b38ea408a88632445e47597b5db4533c0d59 (diff) |
Add to SimpleDateFormat function locale us parameter
Change-Id: I27866be89b95d2c164909248f3bbd45373bf39a9
Issue-ID: VID-605
Signed-off-by: Ittay Stern <ittay.stern@att.com>
Diffstat (limited to 'vid-app-common')
-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 { |