Skip to content

Wrong handling of absolute time stamp when time zone is specified #216

@SebastianProg

Description

@SebastianProg

Python version

3.10.14 | packaged by conda-forge | (main, Mar 20 2024, 12:40:08) [MSC v.1938 64 bit (AMD64)]

Platform information

Windows-10-10.0.22631-SP0

Numpy version

1.26.4

mdfreader version

4.2

Description

When reading MDF files version 4.1 with specified timezone the fileMetadata item 'time' is wrong. Only contains the offset but not the real timestamp. This is because of lines 1341 - 1343 in mdf4reader.py, which not includes the timestamp value of line 1340. Maybe these lines need to be as comment if there is no correct handling of offset items, see attached screenshot:
image

Information about the file content is shown in next screenshot:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions