Skip to content

Commit 14b65e2

Browse files
committed
address peer review
1 parent 25ed9e4 commit 14b65e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
article['agencies'] = [agency['name'] for agency in article['agencies']]
8484

8585
# adjust timezone info into UTC time
86-
article['created_at'] = article['created_at'][:-3] + "00" # %z only accepts `-0400` instead of `-04:00` in Python3.6
86+
article['created_at'] = article['created_at'][:-3] + article['created_at'][-2:] # %z only accepts `-0400` instead of `-04:00` in Python3.6
8787
created_at = datetime.strptime(article['created_at'], '%Y-%m-%dT%H:%M:%S.%f%z').astimezone(timezone.utc)
8888
article['created_at'] = created_at.strftime('%Y-%m-%dT%H:%M:%S.%f')
8989
date_key = created_at.date().strftime('%Y%m%d')

0 commit comments

Comments
 (0)