Skip to content

Commit

Permalink
Don't use ISO parser not available in OL8. #132
Browse files Browse the repository at this point in the history
  • Loading branch information
mfeit-internet2 committed Jul 11, 2024
1 parent f4d2c33 commit ec8c947
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
'''

import os
import isodate
import json
import time
import uuid
from ...utilities.iso8601 import duration_to_seconds
from .api_filters import ApiFilters
from .api_connect import ApiConnect
import datetime
from dateutil.parser import isoparse
from ...utilities.logging_utils import LoggingUtils
import logging

Expand Down Expand Up @@ -533,9 +533,7 @@ def _iso_to_ts(self, iso_str):
return

#ensure no microseconds for strptime to work
dt = isoparse(iso_str)
return dt.timestamp()

return isodate.parse_datetime(iso_str).timestamp()

def _ts_to_iso(self, ts):
if not ts:
Expand Down

0 comments on commit ec8c947

Please sign in to comment.