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

Ignoring seconds fractional part during auto-converting "date" or "time" property into BSON ISODate. #3923

Open
dsvost opened this issue Oct 23, 2019 · 0 comments

Comments

@dsvost
Copy link

dsvost commented Oct 23, 2019

if (strptime(json_object_get_string(json), "%Y-%m-%dT%H:%M:%S:%Z", &tm) != NULL ) {

It would be great to be able convert ISO date string representation into actual BSON ISODate.
Also, we supposed convert string into ISO but assume that string use some different format. I think this one string 2019-10-20T12:00:19:UTC is not ISO enough :).

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