[confirm] Bug in XmlTvImportWakeupHandler.cs (1 Viewer)

sunedane

Portal Member
November 30, 2008
16
5
Home Country
Denmark Denmark
Hi

I think i found a bug in the XmlTvImportWakeupHandler.cs.

GetNextWakeupTime has a bug, that prevents the WakeupHandler to set the right date.

Code:
if ((now < remoteScheduleTime) && (remoteScheduleTime > DateTime.MinValue))
      {
        remoteScheduleTime.AddDays(1);
      }

What we want is to add a day to remoteScheduleTime if we are past the time of Scheduletime. Instead we try to add a day if we are not..
and the code to add the day does nothing.

Code:
if ((now > remoteScheduleTime) && (remoteScheduleTime > DateTime.MinValue))
      {
        remoteScheduleTime = remoteScheduleTime.AddDays(1);
      }

With this code I can now get my xml imported at 3am.

Regards
SuneDane
 

Users who are viewing this thread

Top Bottom