Skip to content

Commit

Permalink
test: verifing test cases 23
Browse files Browse the repository at this point in the history
  • Loading branch information
mfarhan943 committed Sep 23, 2024
1 parent 505e56c commit e292e6c
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,7 @@ def get_seconds_since_epoch(date_time):
"""
if date_time is None:
return None
# replacing this depreciated 1099
# epoch = datetime.datetime.utcfromtimestamp(0).replace(tzinfo=ZoneInfo("UTC"))
epoch = datetime.fromtimestamp(0, tz=ZoneInfo("UTC"))
epoch = datetime.datetime.fromtimestamp(0, tz=ZoneInfo("UTC"))
return math.floor((date_time - epoch).total_seconds())

# Load the CourseOverview from the cache twice. The first load will be a cache miss (because the cache
Expand Down

0 comments on commit e292e6c

Please sign in to comment.