Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

GSON Date format does not match default Elasticsearch date format #165

Closed
MinCha opened this issue Dec 18, 2014 · 3 comments
Closed

GSON Date format does not match default Elasticsearch date format #165

MinCha opened this issue Dec 18, 2014 · 3 comments
Labels

Comments

@MinCha
Copy link
Contributor

MinCha commented Dec 18, 2014

Hello.

I have a question about date format.

In AbstractJestClient:
public static final String ELASTIC_SEARCH_DATE_FORMAT = "yyyy-MM-dd'T'hh:mm:ssZ";

Is this intended? I wonder if you meant yyyy-MM-dd'T'HH:mm:ssZ. Because it looks like it is losing hour information at PM.

Thanks for reading.

@kramer
Copy link
Member

kramer commented Dec 18, 2014

Oops 😱 it's not intended and you are right it should be yyyy-MM-dd'T'HH:mm:ssZ.
Sorry for the trouble 😅 !

@kramer kramer added the bug label Dec 18, 2014
@kramer kramer closed this as completed in 5cea0f0 Dec 18, 2014
@kramer kramer changed the title ELASTIC_SEARCH_DATE_FORMAT GSON Date format does not match default Elasticsearch date format Dec 18, 2014
@micw
Copy link

micw commented Jan 20, 2015

@kramer Thank you for fixing this issue. Could you please schedule a relase for this fix? IMO it's a serious issue because it corrupts data stored to ES.
Kind regards,
Michael.

@kramer
Copy link
Member

kramer commented Jan 20, 2015

Hey @micw , v0.1.5 (including this fix) is now scheduled for 8th of February.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants