Skip to content
Snippets Groups Projects
Commit 7f200ae0 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

Merge branch 'TMSS-3182' into 'master'

Resolve TMSS-3182

Closes TMSS-3182

See merge request !12
parents 7334f8c2 3d8a605b
No related branches found
No related tags found
1 merge request!12Resolve TMSS-3182
Pipeline #109903 passed with warnings
Pipeline: PyCommon

#109904

    ......@@ -45,9 +45,7 @@ def format_timedelta(td: timedelta) -> str:
    def parseDatetime(date_time: str) -> datetime:
    """ Parse the datetime format used in LOFAR parsets. """
    timestamp = datetime.strptime(date_time, ('%Y-%m-%d %H:%M:%S.%f' if '.' in date_time else '%Y-%m-%d %H:%M:%S'))
    timestamp.tzinfo = timezone.utc # LOFAR uses UTC
    return timestamp
    return datetime.strptime(date_time, ('%Y-%m-%d %H:%M:%S.%f' if '.' in date_time else '%Y-%m-%d %H:%M:%S')).replace(tzinfo=timezone.utc) # LOFAR uses UTC
    def formatDatetime(timestamp: datetime) -> str:
    """ Format the timestamp as used in LOFAR parsets. """
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment