Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

EntityRecognizer.resolveTime not resolving LUIS entities #1173

@d3clan

Description

@d3clan

Bot Builder: v3.2.3
I'm having problems with the builder.EntityRecognizer.resolveTime(args.entities) resolving builtin.datetime.date coming back from LUIS.

After LUIS has resolved the enties, it returns for the string 'next summer':

{
  "entity": "next summer",
  "type": "builtin.datetime.date",
  "startIndex": 24,
  "endIndex": 34,
  "resolution": {
    "date": "2017-SU"
  }
}

This falls straight through the logic inside EntityRecognizer#resolveTime, returning undefined. I'm assuming this is regression due to a change in the data LUIS is returning?

I've had a look through the issues and found #7 logged back in March, but it's for a different problem.

I'm calling it in the same way as many of the examples:

var departureDate = builder.EntityRecognizer.resolveTime(args.entities);

Similarly, this will also fail given a more straightforward string of:

{
  "entity": "july 2017",
  "type": "builtin.datetime.date",
  "startIndex": 0,
  "endIndex": 8,
  "resolution": {
    "date": "2017-07"
  }
}

I'm pretty new to the Bot Framework, so please accept my apologies if I've missed something.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions