Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed Nov 11, 2024
1 parent 20d7c8f commit d4f6c60
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions warcio/timeutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ def iso_date_to_datetime(string, aware=False):
nums[6] = nums[6][:6]
nums[6] += PAD_MICRO[len(nums[6]):]

tz_info = None
tzinfo = None
if aware:
tz_info = timezone.utc
tzinfo = timezone.utc

the_datetime = datetime(*(int(num) for num in nums), tzinfo=tzinfo)
return the_datetime
Expand All @@ -79,9 +79,9 @@ def http_date_to_datetime(string, aware=False):
>>> http_date_to_datetime('Thu, 26 Dec 2013 09:50:10 GMT', aware=True)
datetime.datetime(2013, 12, 26, 9, 50, 10, tzinfo=datetime.timezone.utc)
"""
tz_info = None
tzinfo = None
if aware:
tz_info = timezone.utc
tzinfo = timezone.utc

return datetime(*parsedate(string)[:6], tzinfo=tzinfo)

Expand Down

0 comments on commit d4f6c60

Please sign in to comment.