Skip to content

Filestamp dates for even numbered years after the end of February are incorrect on PC #44

@A-Dunstan

Description

@A-Dunstan

Just logging this for visibility in case anyone else stumbles on it.
Forum thread: https://forum.pjrc.com/index.php?threads/teensy-4-0-audio-shield-sd-incorrect-file-timestamp.75002/
PR filed for Teensy core: PaulStoffregen/cores#742

The problem boils down to the makeTime() function not calculating correctly if the current year contains a leap day (it's offset by 2 due to not subtracting 70), so timestamps for March onwards in even-numbered years will either be one day ahead or behind where they should be when viewed on the MTP host.

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