Skip to content

Offset inappropriately applied by getEpochTime #35

@petslane

Description

@petslane

Unix time (also known as POSIX time or epoch time) is a system for describing instants in time, defined as the number of seconds that have elapsed since 00:00:00 Coordinated Universal Time (UTC), Thursday, 1 January 1970 - Wikipedia

So, I understand that timeOffset is used to set timezone to get correct "local" time. But method getEpochTime() should return as it's name says - a Unix time in UTC regardless of "local" timezone. So looks like this->_timeOffset should not be added to this->_currentEpoc in NTPClient::getEpochTime()

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions