Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
rsbohn opened this issue Nov 14, 2023 · 1 comment
Closed

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

rsbohn opened this issue Nov 14, 2023 · 1 comment
Labels
bug mimxrt10xx iMX RT based boards such as Teensy 4.x
Milestone

Comments

@rsbohn
Copy link

rsbohn commented Nov 14, 2023

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

@rsbohn rsbohn added the bug label Nov 14, 2023
@rsbohn rsbohn changed the title time.localtime() gains 10 min in one hour. time.localtime() gains 10 min in one hour on Metro M7. Nov 14, 2023
@tannewt tannewt added the mimxrt10xx iMX RT based boards such as Teensy 4.x label Nov 14, 2023
@tannewt tannewt added this to the 9.x.x milestone Nov 14, 2023
@dhalbert dhalbert modified the milestones: 9.x.x, Long term Apr 5, 2024
@dhalbert
Copy link
Collaborator

dhalbert commented Feb 1, 2025

Closing as a dupe in favor of #9908, which has more information.

@dhalbert dhalbert closed this as completed Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mimxrt10xx iMX RT based boards such as Teensy 4.x
Projects
None yet
Development

No branches or pull requests

3 participants