Skip to content
This repository was archived by the owner on Jun 26, 2025. It is now read-only.

Incorrect ISARIC hosttim conversion #986

@rebkwok

Description

@rebkwok

The hosttim field on the ISARIC table is converted to a date


cast = f"CONVERT(DATE, {returning}, 103)"

However, it's actually a time (string), not a date. Converting it to date doesn't error, but it produces "1900-01-01" for all values.

Example query on db:

SELECT TOP 3 
    hosttim,
    CONVERT(DATE, hosttim, 103) as date,
    CONVERT(TIME, hostim) as time
FROM ISARIC_Patient_Data_TopLine;
hosttim date time
12:39:00 1900-01-01 12:39:00.0000000
11:17:00 1900-01-01 11:17:00.0000000
19:10:00 1900-01-01 19:10:00.0000000

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions