Skip to content

Problem with DS3231 , getEpoch() , setEpoch() using raspberry pico #34

Description

@emwtur

Setting time using setEpoch() sets it one day wrong ?
And I have to set as_unix_epoch to true when setting time and false when reading to get it to work;

RTC.setEpoch(epoch - SECS_PER_DAY, true)

epoch = RTC.getEpoch(false);

have not investigated any deeper - but are using same code for DS1307 and that works without similar issues

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