We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bdbe89 commit 9ee586cCopy full SHA for 9ee586c
1 file changed
GeneratePresentation/__init__.py
@@ -160,7 +160,7 @@ def main(req: func.HttpRequest) -> func.HttpResponse:
160
# end date is optional, so if not provided use today
161
endParam = req.params.get('end')
162
if not endParam:
163
- endParam = datetime.now("%Y-%m-%d")
+ endParam = datetime.now().strftime("%Y-%m-%d")
164
165
# add 1 day to end date so we include all of the day
166
ending = datetime.strptime(endParam, "%Y-%m-%d")
@@ -205,4 +205,5 @@ def main(req: func.HttpRequest) -> func.HttpResponse:
205
mimetype="text/html",
206
body=message,
207
status_code=http_status
208
- )
+
209
+ )
0 commit comments