This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Troubles with parsing strings containing timestamps as Time #161
Labels
type/feature-request
Requested new feature or enhancement
Hi,
First thank you for this great plugin !
I have an api that return time serie data as json objects, like this:
I can plug my data with the
~
operator but the date interpreted is wrong. It compute to something like "1635-05-02 00:00:00".Thank to your test suite I found that it's a problem with how dayJs parse the string (https://day.js.org/docs/en/parse/string). I was able to fix it by adding a call to parseInt() before the value is given to dayJs.
Would you be interested in a PR with those changes ?
EDIT: Thinking a bit more about it, it could cause trouble if the string is a ISODate, I'm going to try and see how both cases can be handled.
Thanks for your attention.
The text was updated successfully, but these errors were encountered: