Don't miss out Virtual Happy Hour today (April 26).

Try our conversational search powered by Generative AI!

Profile API: Custom date formats in ElasticSearch

Fixed in

EPiServer.Profiles.Client 1.5.0

(Or a related package)

Created

Feb 06, 2018

Updated

Jun 04, 2018

State

Closed, Fixed and tested


Description

A user can store custom date(time) formats in ElasticSearch for Profiles only.

1. Send a Post/Put request through Profile API with the following body having offset in date time value.

{
  "Name": "John Doe",
  "Info": {
    "Email": "user1@example.com"
  },
  "FirstSeen": "2017-10-11T20:55:59.324+06"
}

Observation: Every time it stores date and time values with an offset of +02:00 irrespective of input offset value but the overall value is correct.

2. (OR) Send a Post/Put request through Profile API with the following body

{
  "Name": "John Doe",
  "Info": {
    "Email": "user123@example.com"
  },
  "FirstSeen": "2017-10-11T20:30"
}

Observation: It stores date and time values in a custom format without offset.

Expectation: Date and times values should follow a consistent format.

Apparently, these formats are served the purpose and I didn't find any case where one fails or yields unexpected results.