@@ -702,8 +702,8 @@ def days_between(
702702 :param period: start and end datetime
703703 :return: date span
704704 """
705- start_date = period [0 ].datetime . date ()
706- end_date = period [1 ].datetime . date ()
705+ start_date = period [0 ].date ()
706+ end_date = period [1 ].date ()
707707 days : List [datetime .date ] = []
708708 current = start_date
709709 while current <= end_date :
@@ -786,8 +786,8 @@ def get_pr_datetimes_by_repo_period_intrinsic(
786786 :return: PR created timestamps in ISO format
787787 """
788788 timestamps : List [str ] = []
789- since_date = since .datetime . date ().isoformat ()
790- until_date = until .datetime . date ().isoformat ()
789+ since_date = since .date ().isoformat ()
790+ until_date = until .date ().isoformat ()
791791 query = f"repo:{ org } /{ repo } is:pr author:{ username } created:{ since_date } ..{ until_date } "
792792 try :
793793 results = client .search_issues (query )
@@ -845,7 +845,7 @@ def get_loc_stats_by_repo_period_intrinsic(
845845 continue
846846 dt = c .commit .author .date
847847 dt_utc = dt if dt .tzinfo else dt .replace (tzinfo = datetime .timezone .utc )
848- iso = dt_utc .datetime . date ().isoformat ()
848+ iso = dt_utc .date ().isoformat ()
849849 stats_list .append (
850850 {"date" : iso , "additions" : s .additions , "deletions" : s .deletions }
851851 )
0 commit comments