#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
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 (http://docs.platformio.org/en/latest/ide/vscode.html#project-tasks)
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.