Skip to content

Commit 1566c6c

Browse files
author
Mark Costello
committed
Incorrect call to date() after formatting date to string
1 parent eede4fa commit 1566c6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zencoder/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,10 +391,10 @@ def minutes(self, start_date=None, end_date=None, grouping=None):
391391
data = {'api_key': self.api_key}
392392
date_format = '%Y-%m-%d'
393393
if start_date:
394-
data['from'] = datetime.strftime(start_date, date_format).date()
394+
data['from'] = datetime.strftime(start_date, date_format)
395395

396396
if end_date:
397-
data['to'] = datetime.strftime(end_date, date_format).date()
397+
data['to'] = datetime.strftime(end_date, date_format)
398398

399399
if grouping:
400400
data['grouping'] = grouping

0 commit comments

Comments
 (0)