C.Y.M wrote:
Sorry to reply to my own thread. This patch compiles but seems to lock up when loading.. Thanks, I will keep testing it out.Achim Tuffentsammer wrote:Thank you for the help. I just noticed that "now" is an unused variable in this example. Attached is a patch that seems to work and compile cleanly.that should do it: // calculate today's date time_t t = time(NULL); struct tm *res; struct tm *now = localtime_r(&t, res); // default: display calendar for actual month _month = res->tm_mon + 1; _year = res->tm_year + 1900;