This is what rshell has to do:
https://github.com/dhylands/rshell/blob ... in.py#L951
which is called from:
https://github.com/dhylands/rshell/blob ... n.py#L1534
Date/Time management
-
- Posts: 30
- Joined: Thu Jun 30, 2022 3:21 am
Re: Date/Time management
Thank you for this. I spent so much time chasing this and stumbled here. Thanks for sharing this nice codestanely wrote: ↑Thu Mar 12, 2020 1:37 pmI wrote a clock app for the ESP32 where I messed with time. I got the NTP time and then offset it by timezone. Here's how I set the localtime:
You can see all of the code here: https://github.com/the-stanely/Clock-ESP32-Nokia5110Code: Select all
# Set the RTC to local time. (I don't think the uP docs are exactly right about this.) RTC().datetime((yy, mo, dd, 0, hh, mm, ss, 0))