index naming was not using utc time zone.

Original commit: elastic/x-pack-elasticsearch@aca5d5bda6
This commit is contained in:
Boaz Leskes 2013-11-08 00:24:40 +01:00
parent 4f001a9981
commit 4e9c735737
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ public class ESExporter extends AbstractLifecycleComponent<ESExporter> implement
hosts = settings.getAsArray("hosts", new String[]{"localhost:9200"});
indexPrefix = settings.get("index.prefix", "marvel");
String indexTimeFormat = settings.get("index.timeformat", "YYYY.MM.dd");
indexTimeFormatter = DateTimeFormat.forPattern(indexTimeFormat);
indexTimeFormatter = DateTimeFormat.forPattern(indexTimeFormat).withZoneUTC();
timeout = (int) settings.getAsTime("timeout", new TimeValue(6000)).seconds();