@riuss
I also noticed that my code that ran right some weeks ago, just returns weird results with strftime();
Did not began to dig deeper, so i have no idea why it happens, however increasing the buffer size to 42 solved the issue for me.
Try this code: char buffer[42] = {0}; strftime(buffer, 42, "%c", localtime(&t)); if that returns time as expected or even that way are the zeros knocked out. In which case i would also try to force standard printf in mbed_app.json (though i am not sure if that would make a difference)
Also sharing your board can be useful for others to help you.
this does indeed look like a possible error. Could you possibly raise an issue in mbed-os on GitHub with as much data as you can provide so that the team can investigate?