Fix date format for milestone creation (#593)

This commit is contained in:
Michael Behrisch
2018-02-06 14:21:51 -08:00
committed by Jason White
parent cbfe8d0f62
commit e671fdd035
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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",