Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 92a2af8

Browse filesBrowse files
author
Alex Schworer
committed
use date.strftime instead of datetime.strftime
1 parent d8856a6 commit 92a2af8
Copy full SHA for 92a2af8

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎zencoder/core.py

Copy file name to clipboardExpand all lines: zencoder/core.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,10 +345,10 @@ def __format(self, start_date=None, end_date=None, grouping=None):
345345

346346
date_format = '%Y-%m-%d'
347347
if start_date:
348-
data['from'] = datetime.strftime(start_date, date_format)
348+
data['from'] = start_date.strftime(date_format)
349349

350350
if end_date:
351-
data['to'] = datetime.strftime(end_date, date_format)
351+
data['to'] = end_date.strftime(date_format)
352352

353353
if grouping:
354354
data['grouping'] = grouping

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.