Skip to content
Discussion options

You must be logged in to vote

Figured it out. I need to use the following call to set the internal clock:

rtc.datetime(time.localtime(cell_clock - SECONDS_1970_TO_2000))

After that time.localtime() returns the current time.

Thanks

Kevin

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@kctowers
Comment options

@kctowers
Comment options

Answer selected by kctowers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
ESP32
Labels
None yet
2 participants