tvheadend/tvheadend — pull request #574 by Glenn-1990 (2014-12-25 19:51:16+00:00)
Title: Autorec startwindow

The current implementation from the autorec start window is still buggy and confusing.

1) with htsp: planning an autorec on (for example) Thursday just past midnight will result in an autorec just before midnight (15 min diff) ON THURSDAY, this should be Wednesday off course.
2) if we fix the previous bug, we would see Wednesday for a recording that will run on thursday (just past midnight), this is very confusing and not user friendly.
3) most client need a start time for the autorec and this can't be easily calculated in all cases, as the start time is not the same as the event time.
4) A lot of people will think that the start time should be the event time, its strange that it differs 15 mins not??

So, just appending the start window BEFORE AND AFTER the start time is more clear and fixes some bugs as well.