in aidial_analytics_realtime/time.py [0:0]
def parse_time(time_string: str) -> datetime:
timestamp = dateutil_parser.isoparse(time_string)
if timestamp.tzinfo is None:
# The logs may come without the timezone information. We want it to be interpreted as UTC, not local time.
timestamp = timestamp.replace(tzinfo=timezone.utc)
return timestamp