Skip to content

getSystemTime() incorrect result due to tm_isdst not initialised #16

Closed
@mattcro

Description

@mattcro

The getSystemTime() function uses mktime() to do the Iridium epoch offset, but does not set the tm struct's tm_isdst member, which may lead to incorrect time conversions (ie a random/junk DST offset).

It looks like the conversion code should either set epoch_start.tm_isdst = 0 or use mk_gmtime(&epoch_start) to get the epoch start timestamp.

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