Automatic Date conversion at load time?

Hi Everyone

I have a question to implicit date conversion. Is it possible that EL 1.7 does automatically convert a local time to utc time?
My POST to the index does look like this (it's a locale time in my timezone):

[...]
"loadDate": "2016-07-27 10:00:04",
[...]

But Elasticsearch stores something like this (search result):

[...]
"loadDate": "2016-07-27T08:00:04.000Z",
[...]

And the correspondig mapping to the entry aboe looks like this:
"loadDate": {
"type": "date",
"format": "dateOptionalTime"
}

Thanks for your answer.

Best regards
Matt

Hello samatthias,

Yes, elasticsearch will parse that date using system default's timezone (as the input value does not specifies it) and convert it to UTC.

Cheers

Hi Thiago

Thanks for your clarification. Then I'm on the sunny side :slight_smile: and I don't have to convert it before loading.

Best regards
Matt