Skip to content

tz_offset is incorrectly documented in the code and documentation #17

Closed
@VPTechOps

Description

@VPTechOps

The code describes the tz_offset code as:
:param int tz_offset: The offset of the local timezone,
in seconds west of UTC (negative in most of Western Europe,
positive in the US, zero in the UK).
"""

    try:
        now = self._esp.get_time()
        now = time.localtime(now[0] + tz_offset)

Timezone offset in the US is negative. For example MST7 is -25200.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions