-
Notifications
You must be signed in to change notification settings - Fork 14
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
Error: tried to encode an invalid date #658
Comments
This is most likely fixed by e7de1c4 We could add some checks to ensure that EOD - assetPrice.recordedAt = dayjs.unix(result.timestamp).toDate();
+ assetPrice.recordedAt = result.timestamp ? dayjs.unix(result.timestamp).toDate() : dayjs().toDate(); |
The check would be good. Setting it to today might not be the right solution. Maybe we should improve the error message first, so we know what value this problem actually occurs on. |
@mkitzmann how often do you have the issue? |
The text was updated successfully, but these errors were encountered: