mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
Fix date format for milestone creation (#593)
This commit is contained in:
committed by
Jason White
parent
cbfe8d0f62
commit
e671fdd035
@@ -983,7 +983,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
if description is not github.GithubObject.NotSet:
|
||||
post_parameters["description"] = description
|
||||
if due_on is not github.GithubObject.NotSet:
|
||||
post_parameters["due_on"] = due_on.strftime("%Y-%m-%d")
|
||||
post_parameters["due_on"] = due_on.strftime("%Y-%m-%dT%H:%M:%SZ")
|
||||
headers, data = self._requester.requestJsonAndCheck(
|
||||
"POST",
|
||||
self.url + "/milestones",
|
||||
|
||||
Reference in New Issue
Block a user