Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: [ANNOUNCE] pim plugin 0.0.5



C.Y.M wrote:
Achim Tuffentsammer wrote:

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;

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.

Sorry to reply to my own thread. This patch compiles but seems to lock up when loading.. Thanks, I will keep testing it out.




Home | Main Index | Thread Index