When parsing the date string Thu Oct 26 11:00:09 EDT 2023, chrono-node incorrectly returns the date as 2024-10-26T15:00:09.000Z. This seems to be a specific issue with the handling of year calculations.
Steps to Reproduce
Use the chrono-node library to parse the date string Thu Oct 26 11:00:09 EDT 2023.
Observe the output, which incorrectly reflects the year as 2024.
Code to Reproduce
import * as chrono from 'chrono-node'
const parsedDate = chrono.parseDate('Thu Oct 26 11:00:09 EDT 2023')
console.log(parsedDate) //=> 2024-10-26T15:00:09.000Z
const parsedDate1 = chrono.parseDate('Thu Oct 26 11:00:09 2023')
console.log(parsedDate1) // => 2024-10-26T03:00:09.000Z
Description
When parsing the date string
Thu Oct 26 11:00:09 EDT 2023
, chrono-node incorrectly returns the date as2024-10-26T15:00:09.000Z
. This seems to be a specific issue with the handling of year calculations.Steps to Reproduce
Thu Oct 26 11:00:09 EDT 2023
.2024
.Code to Reproduce
Additional Information
Node.js Version: [20.13.1] Chrono-node Version: [2.7.6]