Skip to content

Commit

Permalink
Final fixup for switch to aware arg
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed Nov 11, 2024
1 parent d4f6c60 commit 77c481f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion warcio/timeutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def timestamp_to_sec(string):
1420070399
"""

dt = timestamp_to_datetime(string, tzinfo=timezone.utc)
dt = timestamp_to_datetime(string, aware=True)
return calendar.timegm(dt.utctimetuple())


Expand Down

0 comments on commit 77c481f

Please sign in to comment.