-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
xmlrpc.client uses datetime.datetime.isoformat() #105741
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
Conversation
Reimplement _iso8601_format() using the datetime isoformat() method.
boolean = Boolean = bool | ||
|
||
## | ||
# Wrapper for XML-RPC DateTime values. This converts a time value to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm guessing that this comment is outdated, since it seems like _iso8601_format
defined below does not accept strings or time tuples...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I was surprised by this comment. It looks outdated, _iso8601_format() is now only called with datetime.datetime instances.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. One nit.
Co-Authored-by: Paul Ganssle <1377457+pganssle@users.noreply.github.com>
http://xmlrpc.com/spec.md has a cute answer:
|
I updated the PR to ignore the time zone. I added a test. |
@pganssle: the review was useful, thanks, I completely forgot about the timezone 😮 Did anyone tell you that date and time management is hard? Wow! 😂 |
Reimplement _iso8601_format() using the datetime isoformat() method.