You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an issue with timezones. syncToSystem assumes UTC as Timezone for the RTC (settimeofday(&val, NULL);) syncToRtc on the other hand uses localtime localtime_r(&now, &info);. If the timezone is set somewhere in the code this leads to a wrong time. Use gmtime_r instead solves this problem.
The text was updated successfully, but these errors were encountered:
There is an issue with timezones.
syncToSystem
assumes UTC as Timezone for the RTC (settimeofday(&val, NULL);
)syncToRtc
on the other hand uses localtimelocaltime_r(&now, &info);
. If the timezone is set somewhere in the code this leads to a wrong time. Usegmtime_r
instead solves this problem.The text was updated successfully, but these errors were encountered: