Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions m5stack/components/M5Unified/mpy_m5unified.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ void rtc_sync(struct timeval *tv_in) {
tv = *tv_in;
}
struct tm now;
localtime_r(&tv.tv_sec, &now);
gmtime_r(&tv.tv_sec, &now);
M5.Rtc.setDateTime(&now);
}

Expand Down Expand Up @@ -681,7 +681,7 @@ mp_obj_t m5_begin(size_t n_args, const mp_obj_t *args) {
M5.Display.setFont(&m5gfx::fonts::lvFontMontserrat12);
#endif

// get local time and sync to RTC IC
// get UTC time and sync to RTC IC
rtc_sync(nullptr);

{
Expand Down
Loading