PlatformIO Community

Issue with ESP-IDF <time.h>


#include <time.h> results in the IDE not properly seeing setenv() and tzset(), though compile works fine.


Which IDE? VSCode? Eclipse shows it properly in .platformio/packages/framework-espidf/components/newlib/include/stdlib.h (for setenv()) and time.h for tzset after you execute the Build and “Rebuild C/C++ project index” target


Yes VScode. (Looks like I need 20 chars to post eh…)


Then do a rebuild intellisense index (


I tried that but it did not work. Intelisense is still not seeing it properly.


I still have not figured this out yet, sofar the only solution is to keep that file closed in the IDE unless I need to work on it.