From 742607ec9bf8f9c75a39a6b8ebc5cac94e9a9305 Mon Sep 17 00:00:00 2001 From: szroland Date: Sun, 21 Jun 2015 10:33:45 +0200 Subject: [PATCH] using default timezone explicitly --- .../org/elasticsearch/rest/action/cat/RestIndicesAction.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/org/elasticsearch/rest/action/cat/RestIndicesAction.java b/core/src/main/java/org/elasticsearch/rest/action/cat/RestIndicesAction.java index 36f044ff117..c3aa077b63d 100644 --- a/core/src/main/java/org/elasticsearch/rest/action/cat/RestIndicesAction.java +++ b/core/src/main/java/org/elasticsearch/rest/action/cat/RestIndicesAction.java @@ -43,6 +43,7 @@ import org.elasticsearch.rest.action.support.RestActionListener; import org.elasticsearch.rest.action.support.RestResponseListener; import org.elasticsearch.rest.action.support.RestTable; import org.joda.time.DateTime; +import org.joda.time.DateTimeZone; import java.util.Locale; @@ -325,7 +326,7 @@ public class RestIndicesAction extends AbstractCatAction { table.addCell(indexStats == null ? null : indexStats.getPrimaries().getDocs().getDeleted()); table.addCell(indexMetaData.creationDate()); - table.addCell(new DateTime(indexMetaData.creationDate())); + table.addCell(new DateTime(indexMetaData.creationDate(), DateTimeZone.getDefault())); table.addCell(indexStats == null ? null : indexStats.getTotal().getStore().size()); table.addCell(indexStats == null ? null : indexStats.getPrimaries().getStore().size());