Skip to content

Commit a2bbd06

Browse files
committed
bug resolved
1 parent b38c0e7 commit a2bbd06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

git_logger.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def log_repository_commits(repository: Repository, csv_name, start, finish):
7777
'author name': commit.commit.author.name,
7878
'author login': EMPTY_FIELD,
7979
'author email': EMPTY_FIELD,
80-
'date and time': commit.commit.author.date.astimezone(pytz.timezone(timezone)),
80+
'date and time': commit.commit.author.date,
8181
'changed files': '; '.join([file.filename for file in commit.files]),
8282
'commit id': commit.commit.sha}
8383

@@ -175,7 +175,7 @@ def log_repository_issues(repository: Repository, csv_name, token, start, finish
175175
info_tmp = {
176176
'repository name': repository.full_name, 'number': issue.number, 'title': issue.title,
177177
'state': issue.state, 'task': issue.body,
178-
'created at': issue.created_at.astimezone(pytz.timezone(timezone)),
178+
'created at': issue.created_at,
179179
'creator name': EMPTY_FIELD,
180180
'creator login': EMPTY_FIELD,
181181
'creator email': EMPTY_FIELD if issue.user.email is None else issue.user.email,
@@ -294,7 +294,7 @@ def log_repositories_pr(repository: Repository, csv_name, token, start, finish):
294294
'state': pull.state,
295295
'commit into': pull.base.label,
296296
'commit from': pull.head.label,
297-
'created at': pull.created_at.astimezone(pytz.timezone(timezone)),
297+
'created at': pull.created_at,
298298
'creator name': EMPTY_FIELD if pull.user.name is None else pull.user.name,
299299
'creator login': pull.user.login,
300300
'creator email': pull.user.email,

0 commit comments

Comments
 (0)