appbaseio / appbaseio/dejavu

Plugin displays the date without time.

Open
#304 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
8.5k
Forks
512
PR merge metrics
No merged PRs in 30d

Description

Hi.
I save the date in ElasticSesrch in the format ISO 8601 "YYYY-MM-DD'T'HH: mm: ssZ" (example 2017-05-23T16:56:32Z).
"properties": {
"ModificationDate": {
"type": "date"
}
}
The plugin displays undated. (2017-05-23)

If I add the mapping
"properties": {
"ModificationDate": {
"type": "date", "format": "YYYY-MM-DD'T'HH:mm:ssZ"
}
}
The plugin displays "2017-05-23'T'16:56:32 + 04:00", I would not like to see 'T'

If I add the mapping without 'T', for the correct display in the plugin
"properties": {
"ModificationDate": {
"type": "date", "format": "YYYY-MM-DD HH:mm:ssZ"
}
}
I can not add a document to ElasticSesrch, I have error "Invalid format: \"2017-05-23'T'16:56:32Z\" is malformed at \"'T'16:56:32Z\""

Could you help solve this problem.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue in the plugin with the Elasticsearch date mappings and example value from the report. Compare the displayed date and time for the mappings with and without the quoted T, and verify document creation against Elasticsearch. Done means the plugin displays the intended date-time without the unwanted T while accepting the documented ISO 8601 value.

Written by the indexing model from the issue text.

Assessment

Tech stack
elasticsearch, javascript, react
Domain
databases, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.