My platform is an NXP MCU Cortex-M3 running an SNTP client on top of lwip TCP/IP stack.
I correctly receive current time (seconds from epoch) in UTC. Now I would like to convert it in struct tm *localtime*. There's localtime() function that is what I tried to call. However, as expected, localtime() returns UTC.
My C libraries are newlib and I suspect newlib thinks the timezone is UTC without daylight savings.
Now the question is: how to configure newlib libraries to use a specific timezone (Italy, in my case) so localtime() works as expected?