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

[6.9.3] serializeDate does not work properly with arrayFormat #364

Closed
s7dhansh opened this issue May 1, 2020 · 2 comments
Closed

[6.9.3] serializeDate does not work properly with arrayFormat #364

s7dhansh opened this issue May 1, 2020 · 2 comments
Assignees

Comments

@s7dhansh
Copy link

s7dhansh commented May 1, 2020

qs.stringify({ a: [new Date()] }, { serializeDate: function (d) { return d.getTime(); }, arrayFormat: 'comma' })

should yield: a=<timestamp>
but yields: a=Fri%20May%2001%202020%2019%3A54%3A33%20GMT%2B0530%20%28India%20Standard%20Time%29

It works when I remove arrayFormat.

@ljharb ljharb self-assigned this May 2, 2020
@ljharb ljharb closed this as completed in daf3e6a May 2, 2020
@ljharb
Copy link
Owner

ljharb commented May 2, 2020

Thanks, that was a clear and simple repro :-)

@s7dhansh
Copy link
Author

s7dhansh commented May 3, 2020

Thank you for the fix. Can you kindly release it as well?

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

No branches or pull requests

2 participants