Search found 1 match

by VioBiscu
Wed Aug 19, 2020 11:46 am
Forum: Report Bugs
Topic: is this a bug? or am I doing something wrong?
Replies: 1
Views: 4594

is this a bug? or am I doing something wrong?

void app_main(){ struct tm tsEpoch; struct tm tsRTC; struct timeval now; struct timeval newt; char LineClock[20] ={""}; int flag = 1; unsigned int epoch = 1597833218; newt.tv_sec= epoch; tsEpoch = *localtime(&newt.tv_sec); settimeofday(&newt, NULL); gettimeofday(&now, NULL); tsRTC = *localtime(&now...