Skip to content
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

Date parameters are quoted #110

Open
KG3RK3N opened this issue Nov 27, 2020 · 0 comments
Open

Date parameters are quoted #110

KG3RK3N opened this issue Nov 27, 2020 · 0 comments

Comments

@KG3RK3N
Copy link
Contributor

KG3RK3N commented Nov 27, 2020

Description
Currently, dates can only send as quoted string. That makes it complicated on the backend site, because this values must cleaned from quotes to use it as dates.

My solution
Add the below code to the quoteValue method.

if (value instanceof Date) { return `${value.toJSON()}`; }

Additional context
If there is nothing that against it, I would like to create a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant