Compromise: Failed to identify year for the case 'Wednesday, January 10, 2018 7:20 AM'

Created on 10 Jan 2018  路  2Comments  路  Source: spencermountain/compromise

The code below

nlp('Wednesday, January 10, 2018 7:20 AM').dates().data()[0].date;

returns

{
  month: 0,
  date: 10,
  weekday: 3,
  year: null,    // <- here should be 2018
  named: null,
  time: {
    logic: null,
    hour: 7,
    minute: 20,
    second: null,
    timezone: null
  }
}

bug next-release

All 2 comments

hey Hongbo! thanks. you're right. I will check it out this week.

hey Hongbo, got this fixed and will deploy it today.
thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

josephrocca picture josephrocca  路  6Comments

Xetanai picture Xetanai  路  4Comments

douglance picture douglance  路  6Comments

MarkHerhold picture MarkHerhold  路  5Comments

zzj0402 picture zzj0402  路  4Comments