Skip to content

time.localtime() gains 10 min in one hour on Metro M7. #8604

@rsbohn

Description

@rsbohn

CircuitPython version

Adafruit CircuitPython 8.2.7 on 2023-10-19; Metro MIMXRT1011 with IMXRT1011DAE5A

Code/REPL

def get_time():
    now = time.localtime()
    a = f"{now.tm_year}-{now.tm_mon:02d}-{now.tm_mday:02d} "
    a += f"{now.tm_hour:02d}:{now.tm_min:02d}:{now.tm_sec:02d}"
    return a

while True:
    time.sleep(1)
    print(get_time())

Behavior

Compare printed time with computer clock. The M7 clock is fast.

Description

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmimxrt10xxiMX RT based boards such as Teensy 4.x

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions