From 2b13a1e7af230b308d698ebb15ad13212e0e0d26 Mon Sep 17 00:00:00 2001 From: Ittay Stern Date: Mon, 2 Sep 2019 17:14:11 +0300 Subject: Add to SimpleDateFormat function locale us parameter Change-Id: I27866be89b95d2c164909248f3bbd45373bf39a9 Issue-ID: VID-605 Signed-off-by: Ittay Stern --- vid-app-common/src/main/java/org/onap/vid/model/JobAuditStatus.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vid-app-common') 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 { -- cgit 1.2.3-korg