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
IDF version (run git describe --tags to find it): v4.0 through v4.2
Problem Description
The POSIX and GNU libc definition of adjtime specifies:
If the olddelta argument is not a null pointer, the adjtime function returns information about any previous time adjustment that has not yet completed.
Note the word "previous". The ESP-IDF implementation incorrectly returns
the current time adjustment that has not yet completed, which is rather useless.
…evious adjustment
If the olddelta argument is not a null pointer, the adjtime function returns information
about any previous time adjustment that has not yet completed.
Closes: #5194
…evious adjustment
If the olddelta argument is not a null pointer, the adjtime function returns information
about any previous time adjustment that has not yet completed.
Closes: #5194
…evious adjustment
If the olddelta argument is not a null pointer, the adjtime function returns information
about any previous time adjustment that has not yet completed.
Closes: #5194
git describe --tags
to find it): v4.0 through v4.2Problem Description
The POSIX and GNU libc definition of adjtime specifies:
Note the word "previous". The ESP-IDF implementation incorrectly returns
the current time adjustment that has not yet completed, which is rather useless.
Fix
Swap the two outer
if
blocks in the adjtime function https://github.com/espressif/esp-idf/blob/master/components/newlib/time.c#L193.The text was updated successfully, but these errors were encountered: