# Create date error

**URL:** https://discuss.elastic.co/t/create-date-error/112325
**Category:** Elasticsearch
**Created:** [December 19, 2017, 1:00am UTC](https://discuss.elastic.co/t/create-date-error/112325 "2017-12-19T01:00:36Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)
#### Post date: [December 19, 2017, 1:00am UTC](https://discuss.elastic.co/t/create-date-error/112325/1 "2017-12-19T01:00:37Z")

</div>

`[2017-12-19T08:00:00,494][INFO][o.e.c.m.MetaDataCreateIndexService] [xxxxxhostname] .monitoring-es-6-2017.12.19] creating index, cause [auto(bulk api)], templates [.monitoring-es], shards [1]/[1], mappings [doc]`  
the data is CTS-8 (shanghai/beijing) why the monitoring auto create is at 08:00 ?  
how change it auto create with 00:00 ?

```
[hostname ~]# date 
Tue Dec 19 09:00:54 CST 2017

```

thanks.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [December 19, 2017, 6:16am UTC](https://discuss.elastic.co/t/create-date-error/112325/2 "2017-12-19T06:16:16Z")

</div>

Question moved to #x-pack

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [December 19, 2017, 7:14am UTC](https://discuss.elastic.co/t/create-date-error/112325/3 "2017-12-19T07:14:37Z")

</div>

dates are stored in UTC within Elasticsearch - I suppose you are 8 hours away from UTC?

---

<div class="post-metadata">

### Author: ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)
#### Post date: [December 19, 2017, 7:17am UTC](https://discuss.elastic.co/t/create-date-error/112325/4 "2017-12-19T07:17:32Z")

</div>

this is monitroing data about es ,  
i don't change ?  
how to change this about can create indices at 00:00 in CST localtime.  
@spinscale

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [December 19, 2017, 7:38am UTC](https://discuss.elastic.co/t/create-date-error/112325/5 "2017-12-19T07:38:10Z")

</div>

Hey,

your dates are stored correctly, just in UTC. You can specify a timezone when querying, if you need to - but you cannot change the way how the data is stored.

Why is that a problem for you? Can you elaborate.

--Alex

---

<div class="post-metadata">

### Author: ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)
#### Post date: [December 19, 2017, 7:41am UTC](https://discuss.elastic.co/t/create-date-error/112325/6 "2017-12-19T07:41:19Z")

</div>

all date creat by days.. so it not good create ant am 8:00 create new indices .  
can change the data time use CST not use UTC?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [January 16, 2018, 7:41am UTC](https://discuss.elastic.co/t/create-date-error/112325/7 "2018-01-16T07:41:28Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
