-
Notifications
You must be signed in to change notification settings - Fork 354
Specific date with hour is parsed to null #465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello. I cannot really reproduce the null result as reported (see. c3d2bd8). Could you provide me with more information about how you run the library (the exact code, gist, or runnable example is preferable)? |
I made a minimal reproduction running a plain JavaScript file with Node.js v16.15.0. |
@JuliusHenke I have tried your project using these exact commands: git clone https://github.com/JuliusHenke/chrono-issue-465-example.git
cd chrono-issue-465-example
yarn install
node main.js And got a normal result:
My node version is v18.6.0. It is not easy for me to change my current env. I'll try v16.15.0 if I have time. |
I did test node version Issue occurs:
Issue does not occur:
|
I use
chrono-node
version2.3.9
. I ran some tests with different date formats and found a specific combination of date and hour to not work. I usedparseDate("03-27-2022, 02:00 AM")
.Results in null:
03-27-2022, 02:00 AM
Working as expected:
03-27-2022, 01:00 AM
03-27-2022, 03:00 AM
03-27-2022, 04:00 AM
...
03-27-2022, 01:00 PM
03-27-2022, 02:00 PM
03-27-2022, 03:00 PM
...
03-26-2022, 02:00 AM
03-28-2022, 02:00 AM
The text was updated successfully, but these errors were encountered: