From 475b832c5942e1937c5becac82f523d0896fe4a0 Mon Sep 17 00:00:00 2001 From: Chatura Dilan Perera Date: Mon, 29 Aug 2016 18:50:23 +0530 Subject: [PATCH] Changed return date format to UTC date --- .../carbon/device/mgt/jaxrs/common/GsonMessageBodyHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/common/GsonMessageBodyHandler.java b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/common/GsonMessageBodyHandler.java index d2f9d2113f7..57e5c33e7e8 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/common/GsonMessageBodyHandler.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/common/GsonMessageBodyHandler.java @@ -50,7 +50,7 @@ public class GsonMessageBodyHandler implements MessageBodyWriter, Messag private Gson getGson() { if (gson == null) { final GsonBuilder gsonBuilder = new GsonBuilder(); - gson = gsonBuilder.create(); + gson = gsonBuilder.setDateFormat("EEE, d MMM yyyy HH:mm:ss Z").create(); } return gson; }